docs
Loading...
Searching...
No Matches
ULAudioOutput

#include <Ultralight/CAPI/CAPI_AudioOutput.h>

Overview

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).

Member Data Documentation

◆ create_stream

Called to create a stream.

◆ destroy_stream

Called to destroy a stream.

◆ flush

Called to flush a stream on seek.

◆ get_playback_position

Called to read a stream's audio clock (can be NULL, in which case the position reads 0).

◆ get_preferred_output_format

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).

◆ push_samples

Called to push samples into a stream.

◆ set_paused

Called to pause or resume a stream.

◆ set_volume

Called to set a stream's volume.

◆ stop

Called when no more samples are coming for a stream.

◆ user_data

void* user_data

A user-defined pointer passed to every callback (can be NULL).


The documentation for this struct was generated from the following file: