AudioSink.AudioTrackConfig
public final class AudioSink.AudioTrackConfig
Configuration parameters used for an AudioTrack.
Summary
Public fields |
|
|---|---|
final int |
The buffer size of the track in bytes. |
final int |
The channel configuration of the track. |
final int |
The |
final boolean |
Whether offload is enabled for this track. |
final int |
The sample rate of the audio data. |
final boolean |
Whether tunneling is enabled for this track. |
Public constructors |
|---|
AudioTrackConfig(Creates the audio track configuration parameters. |
Public fields
channelConfig
public final int channelConfig
The channel configuration of the track. See AudioTrack.CHANNEL_OUT_XXX constants.
Public constructors
AudioTrackConfig
public AudioTrackConfig(
@C.Encoding int encoding,
int sampleRate,
int channelConfig,
boolean tunneling,
boolean offload,
int bufferSize
)
Creates the audio track configuration parameters.
| Parameters | |
|---|---|
@C.Encoding int encoding |
The |
int sampleRate |
The sample rate of the audio data. |
int channelConfig |
The channel configuration of the track. See |
boolean tunneling |
Whether tunneling is enabled for this track. |
boolean offload |
Whether offload is enabled for this track. |
int bufferSize |
The buffer size of the track in bytes. |