SdlAudioStreamPointerEx extension

on

Methods

clear() bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Clear any pending data in the stream.
close() → void

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Close a previously-opened audio device.
destroy() → void

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Free an audio stream.
flush() bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Tell the stream that you're done sending data, and anything being buffered should be converted/resampled and made available immediately.
getAvailable() int

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Get the number of converted/resampled bytes available.
getData(Pointer<NativeType> buf, int len) int

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Get converted/resampled data from the stream.
getDevice() int

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Query an audio stream for its currently-bound device.
getFormat(Pointer<SdlAudioSpec> srcSpec, Pointer<SdlAudioSpec> dstSpec) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Query the current format of an audio stream.
getFrequencyRatio() double

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Get the frequency ratio of an audio stream.
getGain() double

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Get the gain of an audio stream.
getInputChannelMap(Pointer<Int32> count) Pointer<Int32>

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Get the current input channel map of an audio stream.
getName() String?

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Get the human-readable name of a specific audio device.
getProperties() int

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Get the properties associated with an audio stream.
getQueued() int

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Get the number of bytes currently queued.
lock() bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Lock an audio stream for serialized access.
pause() bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Use this function to pause audio playback on the audio device associated with an audio stream.
paused() bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Use this function to query if an audio device is paused.
putData(Pointer<NativeType> buf, int len) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Add data to the stream.
resume() bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Use this function to unpause audio playback on the audio device associated with an audio stream.
setFormat(Pointer<SdlAudioSpec> srcSpec, Pointer<SdlAudioSpec> dstSpec) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Change the input and output formats of an audio stream.
setFrequencyRatio(double ratio) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Change the frequency ratio of an audio stream.
setGain(double gain) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Change the gain of an audio stream.
setGetCallback(Pointer<NativeFunction<SdlAudioStreamCallback>> callback, Pointer<NativeType> userdata) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Set a callback that runs when data is requested from an audio stream.
setInputChannelMap(Pointer<Int32> chmap, int count) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Set the current input channel map of an audio stream.
setOutputChannelMap(Pointer<Int32> chmap, int count) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Set the current output channel map of an audio stream.
setPutCallback(Pointer<NativeFunction<SdlAudioStreamCallback>> callback, Pointer<NativeType> userdata) bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Set a callback that runs when data is added to an audio stream.
unlock() bool

Available on Pointer<SdlAudioStream>, provided by the SdlAudioStreamPointerEx extension

Unlock an audio stream for serialized access.