summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Configuration.h
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2014-01-31 13:30:15 +0200
committerMartin Storsjo <martin@martin.st>2014-01-31 13:30:15 +0200
commit398f21348e5100289f6e5be30c8b5257fa04aaf9 (patch)
tree26fb40e2808e33bcad41a36d263bc26b02f5c62c /services/audioflinger/Configuration.h
parentc4eef29af4e306319d8741e0c3ade1ede9a0a2b5 (diff)
downloadframeworks_av-398f21348e5100289f6e5be30c8b5257fa04aaf9.zip
frameworks_av-398f21348e5100289f6e5be30c8b5257fa04aaf9.tar.gz
frameworks_av-398f21348e5100289f6e5be30c8b5257fa04aaf9.tar.bz2
AudioTrack: Never try to use the fast path if resampling is required
Unless AudioFlinger was built with FAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE enabled, AudioFlinger would deny using the fast path (and internally fall back to the normal codepath) when it realized that resampling was required. Since the buffer size calculations within AudioFlinger don't take resampling into account properly (see the calculation below "AUDIO_OUTPUT_FLAG_FAST denied" in audioflinger/Threads.cpp, just below the hunk that this patch changes), make sure AudioTrack doesn't try to use the fast path if resampling is required. This removes the possibility to enable FAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE in AudioFlinger since it AudioTrack now won't even try to use the fast path for content that requires resampling, regardless of the AudioFlinger configuration. Change-Id: Icf0f8ad50bf0fdb84657f518c0120aa0535f23f9
Diffstat (limited to 'services/audioflinger/Configuration.h')
-rw-r--r--services/audioflinger/Configuration.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/services/audioflinger/Configuration.h b/services/audioflinger/Configuration.h
index bc2038a..0754d9d 100644
--- a/services/audioflinger/Configuration.h
+++ b/services/audioflinger/Configuration.h
@@ -32,9 +32,6 @@
// uncomment to enable fast mixer to take performance samples for later statistical analysis
#define FAST_MIXER_STATISTICS
-// uncomment to allow fast tracks at non-native sample rate
-//#define FAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE
-
// uncomment for debugging timing problems related to StateQueue::push()
//#define STATE_QUEUE_DUMP