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/Tracks.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/Tracks.cpp')
-rw-r--r-- | services/audioflinger/Tracks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index c5ab832..6cbab04 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -182,7 +182,7 @@ AudioFlinger::ThreadBase::TrackBase::TrackBase( #ifdef TEE_SINK if (mTeeSinkTrackEnabled) { - NBAIO_Format pipeFormat = Format_from_SR_C(mSampleRate, mChannelCount); + NBAIO_Format pipeFormat = Format_from_SR_C(mSampleRate, mChannelCount, mFormat); if (Format_isValid(pipeFormat)) { Pipe *pipe = new Pipe(mTeeSinkTrackFrames, pipeFormat); size_t numCounterOffers = 0; |