diff options
author | Glenn Kasten <gkasten@google.com> | 2012-09-30 12:29:28 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-01 10:32:46 -0700 |
commit | d06785bebf7e43d4a011b62a252771373ada910c (patch) | |
tree | fc174c6734216926b8443f07dfaa3e7641de3441 /services/audioflinger/AudioFlinger.h | |
parent | 719ae96a5308273100a68d112f131c61f9b3db81 (diff) | |
download | frameworks_av-d06785bebf7e43d4a011b62a252771373ada910c.zip frameworks_av-d06785bebf7e43d4a011b62a252771373ada910c.tar.gz frameworks_av-d06785bebf7e43d4a011b62a252771373ada910c.tar.bz2 |
Save copy of mic input, disabled by default
Change-Id: I4f5e95a5ddf016530d1b2747a0a5ca0962caabda
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 8c55f7c..116820f 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -1477,7 +1477,8 @@ public: uint32_t sampleRate, audio_channel_mask_t channelMask, audio_io_handle_t id, - audio_devices_t device); + audio_devices_t device, + const sp<NBAIO_Sink>& teeSink); virtual ~RecordThread(); // no addTrack_l ? @@ -1573,6 +1574,9 @@ public: // when < 0, maximum frames to drop before starting capture even if sync event is // not received ssize_t mFramestoDrop; + + // For dumpsys + const sp<NBAIO_Sink> mTeeSink; }; // server side of the client's IAudioRecord @@ -2065,6 +2069,13 @@ private: // for use from destructor status_t closeOutput_nonvirtual(audio_io_handle_t output); status_t closeInput_nonvirtual(audio_io_handle_t input); + + // all record threads serially share a common tee sink, which is re-created on format change + sp<NBAIO_Sink> mRecordTeeSink; + sp<NBAIO_Source> mRecordTeeSource; + +public: + static void dumpTee(int fd, const sp<NBAIO_Source>& source, audio_io_handle_t id = 0); }; |