The fields of the Sdl.SDL_AudioSpec structure are listed below. For a complete list of Sdl.SDL_AudioSpec structure members, see the Sdl.SDL_AudioSpec Members topic.
![]() | Callback function for filling the audio buffer This function is called when the audio device needs more data. 'stream' is a pointer to the audio data buffer 'len' is the length of that buffer in bytes. Once the callback returns, the buffer will no longer be valid. Stereo samples are stored in a LRLRLR ordering. |
![]() | Number of channels: 1 mono, 2 stereo. |
![]() | Audio data format. |
![]() | Audio frequency in samples per second |
![]() | Necessary for some compile environments. Should not be used |
![]() | Audio buffer size in samples. |
![]() | Audio buffer silence value (calculated). |
![]() | Audio buffer size in bytes (calculated) |
![]() | Pointer the user data which is passed to the callback function |
Sdl.SDL_AudioSpec Class | Tao.Sdl Namespace | SDL_OpenAudio | SDL_LoadWAV