diff options
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/SimplePlayer.cpp | 3 | ||||
-rw-r--r-- | cmds/stagefright/audioloop.cpp | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/cmds/stagefright/SimplePlayer.cpp b/cmds/stagefright/SimplePlayer.cpp index fac3a8c..0cfeb3e 100644 --- a/cmds/stagefright/SimplePlayer.cpp +++ b/cmds/stagefright/SimplePlayer.cpp @@ -583,8 +583,7 @@ status_t SimplePlayer::onOutputFormatChanged( AUDIO_STREAM_MUSIC, sampleRate, AUDIO_FORMAT_PCM_16_BIT, - (channelCount == 1) - ? AUDIO_CHANNEL_OUT_MONO : AUDIO_CHANNEL_OUT_STEREO, + audio_channel_out_mask_from_count(channelCount), 0); state->mNumFramesWritten = 0; diff --git a/cmds/stagefright/audioloop.cpp b/cmds/stagefright/audioloop.cpp index a6362a4..ed7d6cb 100644 --- a/cmds/stagefright/audioloop.cpp +++ b/cmds/stagefright/audioloop.cpp @@ -32,9 +32,7 @@ int main() { sp<MediaSource> source = new AudioSource( AUDIO_SOURCE_DEFAULT, kSampleRate, - kNumChannels == 1 - ? AUDIO_CHANNEL_IN_MONO - : AUDIO_CHANNEL_IN_STEREO); + audio_channel_in_mask_from_count(kNumChannels)); #endif sp<MetaData> meta = new MetaData; |