public class AudioSessionConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
allowBluetooth |
private int |
allowBluetoothA2dp |
private int |
allowMixWithOthers |
private int |
chatMode |
private int |
defaultToSpeaker |
private int |
inputNumberOfChannels |
private double |
ioBufferDuration |
private int |
outputNumberOfChannels |
private int |
overrideSpeaker |
private int |
playbackAndRecord |
private double |
sampleRate |
| Constructor and Description |
|---|
AudioSessionConfig() |
AudioSessionConfig(int playbackAndRecord,
int chatMode,
int defaultToSpeaker,
int overrideSpeaker,
int allowMixWithOthers,
int allowBluetooth,
int allowBluetoothA2dp,
double sampleRate,
double ioBufferDuration,
int inputNumberOfChannels,
int outputNumberOfChannels) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAllowBluetooth() |
int |
getAllowBluetoothA2dp() |
int |
getAllowMixWithOthers() |
int |
getChatMode() |
int |
getDefaultToSpeaker() |
int |
getInputNumberOfChannels() |
double |
getIoBufferDuration() |
int |
getOutputNumberOfChannels() |
int |
getOverrideSpeaker() |
int |
getPlaybackAndRecord() |
double |
getSampleRate() |
void |
setAllowBluetooth(int allowBluetooth) |
void |
setAllowBluetoothA2dp(int allowBluetoothA2dp) |
void |
setAllowMixWithOthers(int allowMixWithOthers) |
void |
setChatMode(int chatMode) |
void |
setDefaultToSpeaker(int defaultToSpeaker) |
void |
setInputNumberOfChannels(int inputNumberOfChannels) |
void |
setIoBufferDuration(double ioBufferDuration) |
void |
setOutputNumberOfChannels(int outputNumberOfChannels) |
void |
setOverrideSpeaker(int overrideSpeaker) |
void |
setPlaybackAndRecord(int playbackAndRecord) |
void |
setSampleRate(double sampleRate) |
private int playbackAndRecord
private int chatMode
private int defaultToSpeaker
private int overrideSpeaker
private int allowMixWithOthers
private int allowBluetooth
private int allowBluetoothA2dp
private double sampleRate
private double ioBufferDuration
private int inputNumberOfChannels
private int outputNumberOfChannels
public AudioSessionConfig()
public AudioSessionConfig(int playbackAndRecord,
int chatMode,
int defaultToSpeaker,
int overrideSpeaker,
int allowMixWithOthers,
int allowBluetooth,
int allowBluetoothA2dp,
double sampleRate,
double ioBufferDuration,
int inputNumberOfChannels,
int outputNumberOfChannels)
public int getPlaybackAndRecord()
public void setPlaybackAndRecord(int playbackAndRecord)
public int getChatMode()
public void setChatMode(int chatMode)
public int getDefaultToSpeaker()
public void setDefaultToSpeaker(int defaultToSpeaker)
public int getOverrideSpeaker()
public void setOverrideSpeaker(int overrideSpeaker)
public int getAllowMixWithOthers()
public void setAllowMixWithOthers(int allowMixWithOthers)
public int getAllowBluetooth()
public void setAllowBluetooth(int allowBluetooth)
public int getAllowBluetoothA2dp()
public void setAllowBluetoothA2dp(int allowBluetoothA2dp)
public double getSampleRate()
public void setSampleRate(double sampleRate)
public double getIoBufferDuration()
public void setIoBufferDuration(double ioBufferDuration)
public int getInputNumberOfChannels()
public void setInputNumberOfChannels(int inputNumberOfChannels)
public int getOutputNumberOfChannels()
public void setOutputNumberOfChannels(int outputNumberOfChannels)