summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-03-08 12:32:47 -0800
committerGlenn Kasten <gkasten@google.com>2012-03-08 16:18:57 -0800
commitd8f32c2989f79ca5da0e8df96f9a71bb3cefaf86 (patch)
tree418a25c4933e1743c7d99a35f12ff06b8211d3f9 /services/audioflinger/AudioFlinger.h
parent21b4d6b7a5959b567355aae032bd76500c148e54 (diff)
downloadframeworks_base-d8f32c2989f79ca5da0e8df96f9a71bb3cefaf86.zip
frameworks_base-d8f32c2989f79ca5da0e8df96f9a71bb3cefaf86.tar.gz
frameworks_base-d8f32c2989f79ca5da0e8df96f9a71bb3cefaf86.tar.bz2
Replace hard-coded 3 by FCC_2 to simplify searches
Change-Id: I92881d04e8378307f849fb343071a58d181a68b4
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 2e259c0..d9f2972 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -58,6 +58,15 @@ class AudioResampler;
// ----------------------------------------------------------------------------
+// AudioFlinger has a hard-coded upper limit of 2 channels for capture and playback.
+// There is support for > 2 channel tracks down-mixed to 2 channel output via a down-mix effect.
+// Adding full support for > 2 channel capture or playback would require more than simply changing
+// this #define. There is an independent hard-coded upper limit in AudioMixer;
+// removing that AudioMixer limit would be necessary but insufficient to support > 2 channels.
+// The macro FCC_2 highlights some (but not all) places where there is are 2-channel assumptions.
+// Search also for "2", "left", "right", "[0]", "[1]", ">> 16", "<< 16", etc.
+#define FCC_2 2 // FCC_2 = Fixed Channel Count 2
+
static const nsecs_t kDefaultStandbyTimeInNsecs = seconds(3);
class AudioFlinger :