diff options
author | Mikhail Naganov <mnaganov@google.com> | 2018-06-14 12:33:38 -0700 |
---|---|---|
committer | Mikhail Naganov <mnaganov@google.com> | 2018-06-14 17:03:06 -0700 |
commit | 7c6ae98049e422454f6e9ea21d9d3fd6a7bfd217 (patch) | |
tree | 06f9d2dc1df52505e59968677bc1dc8d042a1e55 /services/audioflinger/RecordTracks.h | |
parent | 495d8f29c82be95d499f8897311411ccc74ec52b (diff) | |
download | frameworks_av-7c6ae98049e422454f6e9ea21d9d3fd6a7bfd217.tar.gz frameworks_av-7c6ae98049e422454f6e9ea21d9d3fd6a7bfd217.tar.bz2 frameworks_av-7c6ae98049e422454f6e9ea21d9d3fd6a7bfd217.zip |
audioflinger: Add support for RecordTrack with no conversion
When piping encoded audio data via software patch, it needs
to be created without the buffer converter. In this case the audio
data is copied directly from ResamplerBufferProvider.
Added input flag AUDIO_INPUT_FLAG_DIRECT to indicate to PatchPanel
that the PatchRecord track needs to be opened in this mode.
This flag can be later added to minor Audio HAL update.
Bug: 63901775
Test: MSD scenario; verified that phone over USB headset still works
on marlin / sailfish
Change-Id: If2745778d356769b143fb3c29910275ddef119ac
Diffstat (limited to 'services/audioflinger/RecordTracks.h')
-rw-r--r-- | services/audioflinger/RecordTracks.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/RecordTracks.h b/services/audioflinger/RecordTracks.h index 43b6391fbb..b0c9fda1fe 100644 --- a/services/audioflinger/RecordTracks.h +++ b/services/audioflinger/RecordTracks.h @@ -63,6 +63,8 @@ public: const ExtendedTimestamp ×tamp); virtual bool isFastTrack() const { return (mFlags & AUDIO_INPUT_FLAG_FAST) != 0; } + bool isDirect() const override + { return (mFlags & AUDIO_INPUT_FLAG_DIRECT) != 0; } void setSilenced(bool silenced) { if (!isPatchTrack()) mSilenced = silenced; } bool isSilenced() const { return mSilenced; } |