Get converted/resampled data from the stream
int SDL_GetAudioStreamData(SDL_AudioStream *stream, void *buf, int len);
stream | The stream the audio is being requested from |
buf | A buffer to fill with audio data |
len | The maximum number of bytes to fill |
Returns the number of bytes read from the stream, or -1 on error
This function is available since SDL 3.0.0.