OSDN Git Service

Several fixes in AudioDumpInterface:
authorEric Laurent <elaurent@google.com>
Wed, 12 May 2010 15:24:18 +0000 (08:24 -0700)
committerEric Laurent <elaurent@google.com>
Wed, 12 May 2010 15:31:04 +0000 (08:31 -0700)
commitcb720e9611cd5ab73e20048bb07c5b795f2ac57a
tree639d8f56651ff60fd7417975636da9248ac91e12
parent1853b7d7904a78bff1728a9299b64275c1800885
Several fixes in AudioDumpInterface:

- forward setMode() and getInputBufferSize() calls to underlying audio hardware interface.
- Allow capture of more than one output stream (previous implementation was only capturing
the first output opened, namely the hardware output).
- Allow capture of input streams: previous implementation was only simulating input streams
when more than one was open at a time by reading from a file on SD card). Now the default
behavior is to capture PCM data read from input stream if it was successfully opened or
simulate capture otherwise.

Change-Id: I7e2892b25e295fc3c19c7eb0f71bfaea5816b73a
libs/audioflinger/AudioDumpInterface.cpp
libs/audioflinger/AudioDumpInterface.h