AudioFlinger: Extract TeePatch
Test: atest audiorecord_tests audiotrack_tests audiorouting_tests trackplayerbase_tests audiosystem_tests
Test: atest AAudioTests AudioTrackOffloadTest
Test: atest AudioTrackTest AudioRecordTest
Test: YouTube Camera
Bug: 288339104
Change-Id: I88576005a266fd6beeabec873a2d531a65dcf9fd
diff --git a/services/audioflinger/PlaybackTracks.h b/services/audioflinger/PlaybackTracks.h
index 6a2887d..308a691 100644
--- a/services/audioflinger/PlaybackTracks.h
+++ b/services/audioflinger/PlaybackTracks.h
@@ -189,11 +189,7 @@
// This function should be called with holding thread lock.
void updateTeePatches_l() final;
- void setTeePatchesToUpdate_l(const void* teePatchesToUpdate) final {
- setTeePatchesToUpdate_l( // TODO(b/288339104) void*
- *reinterpret_cast<const AudioFlinger::TeePatches*>(teePatchesToUpdate));
- }
- void setTeePatchesToUpdate_l(AudioFlinger::TeePatches teePatchesToUpdate);
+ void setTeePatchesToUpdate_l(TeePatches teePatchesToUpdate) final;
void tallyUnderrunFrames(size_t frames) final {
if (isOut()) { // we expect this from output tracks only
@@ -389,8 +385,8 @@
bool mFlushHwPending; // track requests for thread flush
bool mPauseHwPending = false; // direct/offload track request for thread pause
audio_output_flags_t mFlags;
- AudioFlinger::TeePatches mTeePatches;
- std::optional<AudioFlinger::TeePatches> mTeePatchesToUpdate;
+ TeePatches mTeePatches;
+ std::optional<TeePatches> mTeePatchesToUpdate;
const float mSpeed;
const bool mIsSpatialized;
const bool mIsBitPerfect;