diff options
author | Glenn Kasten <gkasten@google.com> | 2013-01-10 12:31:01 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-02-22 16:50:36 -0800 |
commit | da6ef1320d0161b1640dc84d7a9c5a25860c3619 (patch) | |
tree | 86b24f64ed0bd55de10deb193290009687886192 /services/audioflinger/AudioFlinger.h | |
parent | 99c2f923f6b04efffe949d1daf9cb7148e3cc201 (diff) | |
download | frameworks_av-da6ef1320d0161b1640dc84d7a9c5a25860c3619.zip frameworks_av-da6ef1320d0161b1640dc84d7a9c5a25860c3619.tar.gz frameworks_av-da6ef1320d0161b1640dc84d7a9c5a25860c3619.tar.bz2 |
Update tee sink
Implement rotation to reduce long-term storage use.
Implement optional per-track tee.
Dynamically enable at runtime based on property, instead of at compile-time.
Dynamic frame count not yet implemented.
Bug: 8223560
Change-Id: I3706443c6ec0cb0c6656dc288715a02ad5fea63a
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index c3f08f6..44bd260 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -593,7 +593,24 @@ private: sp<NBAIO_Source> mRecordTeeSource; public: + // tee sink, if enabled by property, allows dumpsys to write most recent audio to .wav file static void dumpTee(int fd, const sp<NBAIO_Source>& source, audio_io_handle_t id = 0); + + // whether tee sink is enabled by property + static bool mTeeSinkInputEnabled; + static bool mTeeSinkOutputEnabled; + static bool mTeeSinkTrackEnabled; + + // runtime configured size of each tee sink pipe, in frames + static size_t mTeeSinkInputFrames; + static size_t mTeeSinkOutputFrames; + static size_t mTeeSinkTrackFrames; + + // compile-time default size of tee sink pipes, in frames + // 0x200000 stereo 16-bit PCM frames = 47.5 seconds at 44.1 kHz, 8 megabytes + static const size_t kTeeSinkInputFramesDefault = 0x200000; + static const size_t kTeeSinkOutputFramesDefault = 0x200000; + static const size_t kTeeSinkTrackFramesDefault = 0x1000; }; #undef INCLUDING_FROM_AUDIOFLINGER_H |