Skip to content

AudioCallback function missing len parameter #557

@gjones007

Description

@gjones007

In audio.c.v, I think the documented typedef was truncated, it shows:

// This function is called when the audio device needs more data.
...
// typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream)

from the SDL headers it is defined

typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream, int len);

And so, the real issue is, the function type for AudioCallback is missing the len parameter.

pub type AudioCallback = fn (userdata voidptr, stream &u8)

to

pub type AudioCallback = fn (userdata voidptr, stream &u8, len int)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions