diff options
author | Glenn Kasten <gkasten@google.com> | 2012-07-03 17:24:41 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-07-17 11:31:59 -0700 |
commit | 28b76b334f92a15a2be3cc9e2f7d229a3275d1ac (patch) | |
tree | c605d3e995f4b6be55dd4b10e1c998b059990d0d /libvideoeditor | |
parent | fd4e20c226eca185fc789de761beae64855bfbbb (diff) | |
download | frameworks_av-28b76b334f92a15a2be3cc9e2f7d229a3275d1ac.zip frameworks_av-28b76b334f92a15a2be3cc9e2f7d229a3275d1ac.tar.gz frameworks_av-28b76b334f92a15a2be3cc9e2f7d229a3275d1ac.tar.bz2 |
Use audio_channel_mask_t for channel mask
Change-Id: I1c1896da48983aa9f1462a4b471f910498816f60
Diffstat (limited to 'libvideoeditor')
-rwxr-xr-x | libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp b/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp index 797686c..c111ba8 100755 --- a/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp +++ b/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp @@ -534,9 +534,7 @@ status_t VideoEditorAudioPlayer::start(bool sourceAlreadyStarted) { } else { mAudioTrack = new AudioTrack( AUDIO_STREAM_MUSIC, mSampleRate, AUDIO_FORMAT_PCM_16_BIT, - (numChannels == 2) - ? AUDIO_CHANNEL_OUT_STEREO - : AUDIO_CHANNEL_OUT_MONO, + audio_channel_out_mask_from_count(numChannels), 0, AUDIO_OUTPUT_FLAG_NONE, &AudioCallback, this, 0); if ((err = mAudioTrack->initCheck()) != OK) { |