sdlAudioStreamPut function
Add data to be converted/resampled to the stream.
\param stream The stream the audio data is being added to \param buf A pointer to the audio data to add \param len The number of bytes to write to the stream \returns 0 on success, or -1 on error.
\since This function is available since SDL 2.0.7.
\sa SDL_NewAudioStream \sa SDL_AudioStreamGet \sa SDL_AudioStreamAvailable \sa SDL_AudioStreamFlush \sa SDL_AudioStreamClear \sa SDL_FreeAudioStream
extern DECLSPEC int SDLCALL SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, int len)
Implementation
int sdlAudioStreamPut(
Pointer<SdlAudioStream> stream, Pointer<NativeType> buf, int len) {
final sdlAudioStreamPutLookupFunction = libSdl2.lookupFunction<
Int32 Function(
Pointer<SdlAudioStream> stream, Pointer<NativeType> buf, Int32 len),
int Function(Pointer<SdlAudioStream> stream, Pointer<NativeType> buf,
int len)>('SDL_AudioStreamPut');
return sdlAudioStreamPutLookupFunction(stream, buf, len);
}