PushAudioOutputStream class

Represents audio output stream used for custom audio output configurations.

Extends

Properties

format

Sets the format of the AudioOutputStream Note: the format is set by the synthesizer before writing. Do not set it before passing it to AudioConfig

Methods

close()

Explicitly frees any external resource attached to the object

create(PushAudioOutputStreamCallback)

Creates a PushAudioOutputStream that delegates to the specified callback interface for write() and close() methods.

Inherited Methods

createPullStream()

Creates a memory backed PullAudioOutputStream with the specified audio format.

Property Details

format

Sets the format of the AudioOutputStream Note: the format is set by the synthesizer before writing. Do not set it before passing it to AudioConfig

void format

Property Value

void

Method Details

close()

Explicitly frees any external resource attached to the object

function close()

create(PushAudioOutputStreamCallback)

Creates a PushAudioOutputStream that delegates to the specified callback interface for write() and close() methods.

static function create(callback: PushAudioOutputStreamCallback): PushAudioOutputStream

Parameters

callback
PushAudioOutputStreamCallback

The custom audio output object, derived from PushAudioOutputStreamCallback

Returns

The push audio output stream being created.

Inherited Method Details

createPullStream()

Creates a memory backed PullAudioOutputStream with the specified audio format.

static function createPullStream(): PullAudioOutputStream

Returns

The audio output stream being created.

Inherited From AudioOutputStream.createPullStream