summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-07-08 21:01:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-07-08 21:01:40 +0000
commit03a012a855b7edcda0b799031d70765769057be5 (patch)
tree678dd294d2d35ea5072aba2038caf52e2cb747ae
parentc0e8dc0d40329960136cb8729cb6d19cb393a319 (diff)
parent92e53bc98cd938e9917fb02d3e5a9be88423791d (diff)
downloadandroid_frameworks_wilhelm-03a012a855b7edcda0b799031d70765769057be5.tar.gz
android_frameworks_wilhelm-03a012a855b7edcda0b799031d70765769057be5.tar.bz2
android_frameworks_wilhelm-03a012a855b7edcda0b799031d70765769057be5.zip
Merge "Remove requirement for application side double-buffering"
-rw-r--r--src/android/AudioPlayer_to_android.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/android/AudioPlayer_to_android.cpp b/src/android/AudioPlayer_to_android.cpp
index 43a9353..d72cf4b 100644
--- a/src/android/AudioPlayer_to_android.cpp
+++ b/src/android/AudioPlayer_to_android.cpp
@@ -1332,9 +1332,9 @@ SLresult android_audioPlayer_getConfig(CAudioPlayer* ap, const SLchar *configKey
static bool canUseFastTrack(CAudioPlayer *pAudioPlayer)
{
assert(pAudioPlayer->mAndroidObjType == AUDIOPLAYER_FROM_PCM_BUFFERQUEUE);
- if (pAudioPlayer->mBufferQueue.mNumBuffers < 2) {
- return false;
- }
+
+ // no need to check the buffer queue size, application side
+ // double-buffering (and more) is not a requirement for using fast tracks
// Check a blacklist of interfaces that are incompatible with fast tracks.
// The alternative, to check a whitelist of compatible interfaces, is