summaryrefslogtreecommitdiffstats
path: root/libvideoeditor
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-07-03 17:24:41 -0700
committerGlenn Kasten <gkasten@google.com>2012-07-17 11:31:59 -0700
commit28b76b334f92a15a2be3cc9e2f7d229a3275d1ac (patch)
treec605d3e995f4b6be55dd4b10e1c998b059990d0d /libvideoeditor
parentfd4e20c226eca185fc789de761beae64855bfbbb (diff)
downloadframeworks_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-xlibvideoeditor/lvpp/VideoEditorAudioPlayer.cpp4
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) {