summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/test-resample.cpp
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-04-02 11:24:53 -0700
committerAndy Hung <hunga@google.com>2014-04-02 14:33:26 -0700
commit84a0c6e87c48f58a0d3be71961432c086a4d24cc (patch)
treea9bea7e95223dc4d1f3219d4e60dd385881ec6d8 /services/audioflinger/test-resample.cpp
parent99021c47f45ee8bf3317cff7d08226e76c8d8227 (diff)
downloadframeworks_av-84a0c6e87c48f58a0d3be71961432c086a4d24cc.zip
frameworks_av-84a0c6e87c48f58a0d3be71961432c086a4d24cc.tar.gz
frameworks_av-84a0c6e87c48f58a0d3be71961432c086a4d24cc.tar.bz2
Change references of Q19.12 to Q4.27 for clarity
Change-Id: I5beb7daf6ff9bc123ff3582f7c294edcaf8652f6 Signed-off-by: Andy Hung <hunga@google.com>
Diffstat (limited to 'services/audioflinger/test-resample.cpp')
-rw-r--r--services/audioflinger/test-resample.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/test-resample.cpp b/services/audioflinger/test-resample.cpp
index 3ab3ba9..7b7cdac 100644
--- a/services/audioflinger/test-resample.cpp
+++ b/services/audioflinger/test-resample.cpp
@@ -352,8 +352,9 @@ int main(int argc, char* argv[]) {
size_t out_frames = output_size/8;
/* set volume precision to 12 bits, so the volume scale is 1<<12.
- * This means the "integer" part fits in the Q19.12 precision
- * representation of output int32_t.
+ * The output int32_t is represented as Q4.27, with 4 bits of guard
+ * followed by the int16_t Q.15 portion, and then 12 trailing bits of
+ * additional precision.
*
* Generally 0 < volumePrecision <= 14 (due to the limits of
* int16_t values for Volume). volumePrecision cannot be 0 due