summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/tests/mixer_to_wav_tests.sh
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-08-25 16:36:37 -0700
committerAndy Hung <hunga@google.com>2014-11-07 11:35:47 -0800
commit7f47549516ae5938759b5c834c8423378a60b3d8 (patch)
tree85c60a5278b4ae431a574b229a090e053866d7fb /services/audioflinger/tests/mixer_to_wav_tests.sh
parent0f451e92f09e089e588f303f729425a54fcd804b (diff)
downloadframeworks_av-7f47549516ae5938759b5c834c8423378a60b3d8.zip
frameworks_av-7f47549516ae5938759b5c834c8423378a60b3d8.tar.gz
frameworks_av-7f47549516ae5938759b5c834c8423378a60b3d8.tar.bz2
Fix AudioMixer floating interaction with downmixer
Previously _if_ the full floating point mixer is enabled, a downmixer would force the mixer input for a session submix to integer, breaking other mixer inputs to the same submix that were in float. Use another ReformatBufferProvider after the downmixer to solve this issue. Update the test-mixer app and the mixer_to_wave_tests shell script to detect this issue. Bug: 17363939 Change-Id: I74a56333f9ee75ddde39a75392c021c5eebddbef
Diffstat (limited to 'services/audioflinger/tests/mixer_to_wav_tests.sh')
-rwxr-xr-xservices/audioflinger/tests/mixer_to_wav_tests.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/services/audioflinger/tests/mixer_to_wav_tests.sh b/services/audioflinger/tests/mixer_to_wav_tests.sh
index 9b39e77..e60e6d5 100755
--- a/services/audioflinger/tests/mixer_to_wav_tests.sh
+++ b/services/audioflinger/tests/mixer_to_wav_tests.sh
@@ -63,8 +63,18 @@ function createwav() {
# process__genericResampling
# track__Resample / track__genericResample
adb shell test-mixer $1 -s 48000 \
+ -o /sdcard/tm48000grif.wav \
+ sine:2,4000,7520 chirp:2,9200 sine:1,3000,18000 \
+ sine:f,6,6000,19000 chirp:i,4,30000
+ adb pull /sdcard/tm48000grif.wav $2
+
+# Test:
+# process__genericResampling
+# track__Resample / track__genericResample
+ adb shell test-mixer $1 -s 48000 \
-o /sdcard/tm48000gr.wav \
- sine:2,4000,7520 chirp:2,9200 sine:1,3000,18000
+ sine:2,4000,7520 chirp:2,9200 sine:1,3000,18000 \
+ sine:6,6000,19000
adb pull /sdcard/tm48000gr.wav $2
# Test: