Constructors
new AudioRecordStream()
new AudioRecordStream(id): AudioRecordStream
Creates a new AudioRecordStream instance.
This constructor Must not be called directly.
Use AudioRecordStreamBuilder.AudioRecordStreamBuilder.buildAsync to create instances.
Parameters
id
number
Internal stream identifier
Returns
AudioRecordStream
Properties
streamId
streamId:number
Methods
flushAsync()
flushAsync():Promise<AudioStatus>
Flushes the record buffer, discarding any unread data.
Returns
Promise<AudioStatus>
A promise that resolves to:
STATUS_NO_ERROR (0): Successfully flushedSTATUS_NO_INIT (-3): Stream not initializedSTATUS_DEAD_OBJECT (-5): Server communication error
getAudioConfigAsync()
getAudioConfigAsync():Promise<AudioConfig>
Retrieves the current audio configuration of the record stream.
Returns
Promise<AudioConfig>
A promise that resolves to an AudioConfig object containing:
sampleRate: Current sample rate in HzchannelMask: Current channel configurationformat: Current sample format Or rejects with:STATUS_NO_INIT (-3): Stream not initializedSTATUS_DEAD_OBJECT (-5): Server communication error

