OSDN Git Service

Add ability to read .wav files to test-resample
authorGlenn Kasten <gkasten@google.com>
Tue, 17 Dec 2013 23:22:08 +0000 (15:22 -0800)
committerGlenn Kasten <gkasten@google.com>
Wed, 18 Dec 2013 00:04:29 +0000 (16:04 -0800)
commitbd72d22097f78f5bd668b223bc8c94e351311e31
tree2d6acf288135eeb1149e1d631db3e8fd2ef4626e
parentf5293648b727fb3909cd2300a73377f032f8b050
Add ability to read .wav files to test-resample

Previously test-resample could only read .raw files, and the input
sample rate had to be specified.  Now the input sample rate is derived
from the input file.  This also allows us to read 8-bit PCM files,
and other formats such as floating-point in the future.

However, the ability to read raw files is lost.
A workaround is to use sox or equivalent on the host.

Change-Id: Icd06b4d02482b3ad07bf03979f46860e68d38ad9
services/audioflinger/test-resample.cpp