|
Ultralight C API 2.0.0
|
#include <Ultralight/CAPI/CAPI_AudioOutput.h>
User-defined audio output interface.
You should implement each of these callbacks, then pass an instance of this struct containing your callbacks to ulPlatformSetAudioOutput().
Public Attributes | |
| void * | user_data |
| A user-defined pointer passed to every callback (can be NULL). | |
| ULAudioOutputCreateStreamCallback | create_stream |
| Called to create a stream. | |
| ULAudioOutputPushSamplesCallback | push_samples |
| Called to push samples into a stream. | |
| ULAudioOutputSetVolumeCallback | set_volume |
| Called to set a stream's volume. | |
| ULAudioOutputSetPausedCallback | set_paused |
| Called to pause or resume a stream. | |
| ULAudioOutputFlushCallback | flush |
| Called to flush a stream on seek. | |
| ULAudioOutputStopCallback | stop |
| Called when no more samples are coming for a stream. | |
| ULAudioOutputDestroyStreamCallback | destroy_stream |
| Called to destroy a stream. | |
| ULAudioOutputGetPlaybackPositionCallback | get_playback_position |
| Called to read a stream's audio clock (can be NULL, in which case the position reads 0). | |
| ULAudioOutputGetPreferredOutputFormatCallback | get_preferred_output_format |
| Called to read the device's preferred format (can be NULL, in which case it is stereo at 48000 Hz). | |
| ULAudioOutputCreateStreamCallback create_stream |
Called to create a stream.
| ULAudioOutputDestroyStreamCallback destroy_stream |
Called to destroy a stream.
Called to flush a stream on seek.
| ULAudioOutputGetPlaybackPositionCallback get_playback_position |
Called to read a stream's audio clock (can be NULL, in which case the position reads 0).
| ULAudioOutputGetPreferredOutputFormatCallback get_preferred_output_format |
Called to read the device's preferred format (can be NULL, in which case it is stereo at 48000 Hz).
| ULAudioOutputPushSamplesCallback push_samples |
Called to push samples into a stream.
| ULAudioOutputSetPausedCallback set_paused |
Called to pause or resume a stream.
| ULAudioOutputSetVolumeCallback set_volume |
Called to set a stream's volume.
Called when no more samples are coming for a stream.
| void* user_data |
A user-defined pointer passed to every callback (can be NULL).