Constructors
new AudioPlaybackStreamBuilder()
new AudioPlaybackStreamBuilder():AudioPlaybackStreamBuilder
Returns
AudioPlaybackStreamBuilder
Properties
args
args:Object = {}
Methods
buildAsync()
buildAsync():Promise<AudioPlaybackStream>
Creates a new AudioPlaybackStream using the current builder configuration.
Must call setAudioConfig and setAudioAttributes before building.
Returns
Promise<AudioPlaybackStream>
A promise that resolves to:
- New AudioPlaybackStream instance if successful
STATUS_BAD_VALUE (-2): Missing required configurationSTATUS_NO_INIT (-3): Audio system not initializedSTATUS_NO_MEMORY (-1): Failed to allocate resourcesSTATUS_DEAD_OBJECT (-5): Server communication errorSTATUS_INVALID_OPERATION (-8): Invalid configuration combination
reset()
reset():void
Resets all builder configuration to default values.
Use this to reuse the builder for creating a different stream configuration.
Returns
void

