LocalInputAudioSamples
The LocalInputAudioSamples model contains information about audio captured by the local participant's microphone.
The model is supported in SDK 3.8 and later.
Available in the package com.voxeet.android.media.stream.LocalInputAudioSamples.
Constructors
LocalInputAudioSamples
▸ LocalInputAudioSamples(audioFormat
: int, channelCount
: int, sampleRate
: int, @NonNull data
: byte)
The class constructor.
Parameters
Name | Type | Description |
---|---|---|
audioFormat | int | The audio format of an audio stream. |
channelCount | int | The configured number of channels. |
sampleRate | int | The configured audio sink sample rate in Hz. |
data | byte | The sample audio data. |
Methods
getAudioFormat
▸ getAudioFormat(): int
Gets the audio format of an audio stream.
Returns: int
getChannelCount
▸ getChannelCount(): int
Gets the configured number of channels.
Returns: int
getSampleRate
▸ getSampleRate(): int
Gets the configured audio sink sample rate in Hz.
Returns: int
getData
▸ getData(): byte
Gets the sample audio data.
Returns: @NonNull byte
Updated 10 months ago