diff options
author | Glenn Kasten <gkasten@google.com> | 2014-08-28 16:23:16 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-09-02 13:54:21 -0700 |
commit | 329f6511ee4e03a4605c70bbda8d3a96d2544884 (patch) | |
tree | 7c80c71e7eb84ba39106205214c9e58b5f6aed1e /services/audioflinger/FastMixer.cpp | |
parent | 9dd4a2ddd7caf8cbe50d8a76e0ec3e0274d2bce6 (diff) | |
download | frameworks_av-329f6511ee4e03a4605c70bbda8d3a96d2544884.zip frameworks_av-329f6511ee4e03a4605c70bbda8d3a96d2544884.tar.gz frameworks_av-329f6511ee4e03a4605c70bbda8d3a96d2544884.tar.bz2 |
Restore the ability to build tee sink for debugging
This changelist does not enable tee sink, but makes it possible to do so.
Tee sink had suffered some bit rot since it is not built by default.
Also fixes a crash for > 2 byte per sample or > 2 channels.
Still does not write correct header for floating-point;
that will be best solved by moving to libsndfile.
Bug: 16990102
Change-Id: I8e92c588ccc513d7802d696fcfb324e815772df6
Diffstat (limited to 'services/audioflinger/FastMixer.cpp')
-rw-r--r-- | services/audioflinger/FastMixer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp index 9e15293..2678cbf 100644 --- a/services/audioflinger/FastMixer.cpp +++ b/services/audioflinger/FastMixer.cpp @@ -420,7 +420,7 @@ void FastMixer::onWork() // if non-NULL, then duplicate write() to this non-blocking sink NBAIO_Sink* teeSink; if ((teeSink = current->mTeeSink) != NULL) { - (void) teeSink->write(mMixerBuffer, frameCount); + (void) teeSink->write(buffer, frameCount); } // FIXME write() is non-blocking and lock-free for a properly implemented NBAIO sink, // but this code should be modified to handle both non-blocking and blocking sinks |