SDL Wiki
(This is the legacy documentation for SDL2, the previous stable version; SDL3 is the current stable version.)

SDL_AudioCallback

This function is called when the audio device needs more data.

Header File

Defined in SDL_audio.h

Syntax

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

Function Parameters

userdata An application-specific parameter saved in the SDL_AudioSpec structure.
stream A pointer to the audio data buffer.
len Length of stream in bytes.

CategoryAPI, CategoryAPIDatatype, CategoryAudio


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.