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

The C.Encoding of the audio data.

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 AudioFormat.CHANNEL_OUT_XXX constants like CHANNEL_OUT_5POINT1.

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 bufferSize: Int

The buffer size of the track in bytes.

channelConfig

val channelConfig: Int

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

encoding

@C.Encoding
val encoding: Int

The C.Encoding of the audio data.

offload

val offload: Boolean

Whether offload is enabled for this track.

sampleRate

val sampleRate: Int

The sample rate of the audio data.

tunneling

val tunneling: Boolean

Whether tunneling is enabled for this track.