summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/tests/test_utils.h
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-07-17 21:30:53 -0700
committerAndy Hung <hunga@google.com>2014-07-24 18:40:33 -0700
commite93b6b7347a7846c8fd746542364ec11b0cd5124 (patch)
treed5498ae539ae460d4153026be9714129fc45a21f /services/audioflinger/tests/test_utils.h
parent81e50d0c782cc18eab4ef40ecd6c7f36df50fea5 (diff)
downloadframeworks_av-e93b6b7347a7846c8fd746542364ec11b0cd5124.zip
frameworks_av-e93b6b7347a7846c8fd746542364ec11b0cd5124.tar.gz
frameworks_av-e93b6b7347a7846c8fd746542364ec11b0cd5124.tar.bz2
Add multichannel capability to AudioMixer
tests/test-mixer updated to handle multichannel. New mixer path is still disabled (kUseNewMixer = false). Subsequent CL will enable multichannel capability. Change-Id: I71dafa94cc1d9af567c285e0ded7c5c94e3ff926
Diffstat (limited to 'services/audioflinger/tests/test_utils.h')
-rw-r--r--services/audioflinger/tests/test_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/tests/test_utils.h b/services/audioflinger/tests/test_utils.h
index f954292..e446216 100644
--- a/services/audioflinger/tests/test_utils.h
+++ b/services/audioflinger/tests/test_utils.h
@@ -195,7 +195,7 @@ static void createSine(void *vbuffer, size_t frames,
T yt = convertValue<T>(y);
for (size_t j = 0; j < channels; ++j) {
- buffer[i*channels + j] = yt / (j + 1);
+ buffer[i*channels + j] = yt / T(j + 1);
}
}
}
@@ -221,7 +221,7 @@ static void createChirp(void *vbuffer, size_t frames,
T yt = convertValue<T>(y);
for (size_t j = 0; j < channels; ++j) {
- buffer[i*channels + j] = yt / (j + 1);
+ buffer[i*channels + j] = yt / T(j + 1);
}
}
}