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

Commit 44097837 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Match AudioRecord.getChannelConfiguration docs"

parents fca3193b d5af2381
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;
    }

    /**