Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5af2381 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Match AudioRecord.getChannelConfiguration docs

Bug: 10001767
Change-Id: I28705ae84ee585afc37cdd2b13a039b7bfc36543
parent b8fc83f3
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -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;
    }

    /**