mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 19:36:29 +00:00
audio: Fixed SDL_AudioStreamGet() function parameters.
There was a draft of this where it did audio conversion into the final buffer, if there was enough room available past what you asked for, but that interface got removed, so the parameters didn't make sense (and we were using the wrong one in any case, too!).
This commit is contained in:
@@ -87,7 +87,7 @@ SDL_AudioStream *SDL_NewAudioStream(const SDL_AudioFormat src_format,
|
||||
int SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, const Uint32 len);
|
||||
|
||||
/* get converted/resampled data from the stream */
|
||||
int SDL_AudioStreamGet(SDL_AudioStream *stream, Uint32 len, void *buf, const Uint32 buflen);
|
||||
int SDL_AudioStreamGet(SDL_AudioStream *stream, void *buf, const Uint32 len);
|
||||
|
||||
/* clear any pending data in the stream without converting it. */
|
||||
void SDL_AudioStreamClear(SDL_AudioStream *stream);
|
||||
|
Reference in New Issue
Block a user