AudioSink.AudioTrackConfig


class AudioSink.AudioTrackConfig


Configuration parameters used for an AudioTrack.

Summary

Public constructors

AudioTrackConfig(
    @C.Encoding encoding: Int,
    sampleRate: Int,
    channelConfig: Int,
    tunneling: Boolean,
    offload: Boolean,
    bufferSize: Int
)

Creates the audio track configuration parameters.

Public properties

Int

The buffer size of the track in bytes.

Int

The channel configuration of the track.

Int
Boolean

Whether offload is enabled for this track.

Int

The sample rate of the audio data.

Boolean

Whether tunneling is enabled for this track.

Public constructors

AudioTrackConfig

AudioTrackConfig(
    @C.Encoding encoding: Int,
    sampleRate: Int,
    channelConfig: Int,
    tunneling: Boolean,
    offload: Boolean,
    bufferSize: Int
)

Creates the audio track configuration parameters.

Parameters
@C.Encoding encoding: Int

The C.Encoding of the audio data

sampleRate: Int

The sample rate of the audio data.

channelConfig: Int

The channel configuration of the track. See AudioTrack.CHANNEL_OUT_XXX constants.

tunneling: Boolean

Whether tunneling is enabled for this track.

offload: Boolean

Whether offload is enabled for this track.

bufferSize: Int

The buffer size of the track in bytes.

Public properties

bufferSize

val bufferSizeInt

The buffer size of the track in bytes.

channelConfig

val channelConfigInt

The channel configuration of the track. See AudioTrack.CHANNEL_OUT_XXX constants.

encoding

@C.Encoding
val encodingInt

offload

val offloadBoolean

Whether offload is enabled for this track.

sampleRate

val sampleRateInt

The sample rate of the audio data.

tunneling

val tunnelingBoolean

Whether tunneling is enabled for this track.