summaryrefslogtreecommitdiffstats
path: root/media/jni/soundpool/SoundPool.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-03-07 09:15:37 -0800
committerGlenn Kasten <gkasten@google.com>2012-03-09 15:32:22 -0800
commit28b269f3418c27275bbf635e524ed501bfac6518 (patch)
treead59f84ecdadecadbabda38acb9b04df76f498e9 /media/jni/soundpool/SoundPool.cpp
parentdf0d3ab4d03d8738a606b35bf9673950844aef4a (diff)
downloadframeworks_base-28b269f3418c27275bbf635e524ed501bfac6518.zip
frameworks_base-28b269f3418c27275bbf635e524ed501bfac6518.tar.gz
frameworks_base-28b269f3418c27275bbf635e524ed501bfac6518.tar.bz2
Use audio_policy_output_flags_t consistently
This affects: - IAudioFlinger::openOutput - AudioTrack::AudioTrack - AudioTrack::set - apps that call these Change-Id: I26fb281bac6cb87593d17697bc9cb37a835af205
Diffstat (limited to 'media/jni/soundpool/SoundPool.cpp')
-rw-r--r--media/jni/soundpool/SoundPool.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/jni/soundpool/SoundPool.cpp b/media/jni/soundpool/SoundPool.cpp
index ceb87db..5aed8a1 100644
--- a/media/jni/soundpool/SoundPool.cpp
+++ b/media/jni/soundpool/SoundPool.cpp
@@ -608,10 +608,11 @@ void SoundChannel::play(const sp<Sample>& sample, int nextChannelID, float leftV
// do not create a new audio track if current track is compatible with sample parameters
#ifdef USE_SHARED_MEM_BUFFER
newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
- channels, sample->getIMemory(), 0, callback, userData);
+ channels, sample->getIMemory(), AUDIO_POLICY_OUTPUT_FLAG_NONE, callback, userData);
#else
newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
- channels, frameCount, 0, callback, userData, bufferFrames);
+ channels, frameCount, AUDIO_POLICY_OUTPUT_FLAG_NONE, callback, userData,
+ bufferFrames);
#endif
oldTrack = mAudioTrack;
status = newTrack->initCheck();