Match AudioRecord.getChannelConfiguration docs
Bug: 10001767 Change-Id: I28705ae84ee585afc37cdd2b13a039b7bfc36543
This commit is contained in:
@ -133,10 +133,6 @@ public class AudioRecord
|
||||
* The audio channel mask
|
||||
*/
|
||||
private int mChannels = AudioFormat.CHANNEL_IN_MONO;
|
||||
/**
|
||||
* The current audio channel configuration
|
||||
*/
|
||||
private int mChannelConfiguration = AudioFormat.CHANNEL_IN_MONO;
|
||||
/**
|
||||
* The encoding of the audio samples.
|
||||
* @see AudioFormat#ENCODING_PCM_8BIT
|
||||
@ -276,8 +272,6 @@ public class AudioRecord
|
||||
|
||||
//--------------
|
||||
// channel config
|
||||
mChannelConfiguration = channelConfig;
|
||||
|
||||
switch (channelConfig) {
|
||||
case AudioFormat.CHANNEL_IN_DEFAULT: // AudioFormat.CHANNEL_CONFIGURATION_DEFAULT
|
||||
case AudioFormat.CHANNEL_IN_MONO:
|
||||
@ -297,7 +291,6 @@ public class AudioRecord
|
||||
default:
|
||||
mChannelCount = 0;
|
||||
mChannels = AudioFormat.CHANNEL_INVALID;
|
||||
mChannelConfiguration = AudioFormat.CHANNEL_INVALID;
|
||||
throw (new IllegalArgumentException("Unsupported channel configuration."));
|
||||
}
|
||||
|
||||
@ -393,7 +386,7 @@ public class AudioRecord
|
||||
* and {@link AudioFormat#CHANNEL_IN_STEREO}.
|
||||
*/
|
||||
public int getChannelConfiguration() {
|
||||
return mChannelConfiguration;
|
||||
return mChannels;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user