Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94ffd9b9 authored by Andy Hung's avatar Andy Hung
Browse files

AudioFlinger: Support Track container polymorphism

The ThreadBase class needs to directly access TrackBase objects
to support better reuse of code, and eventually Mmap internal
support.

This CL begins the migration of mActiveTracks and mTracks
to hold TrackBase objects, and then the migration to ThreadBase.

We create views on mActiveTracks to the actual IAfTrack, IAFRecordTrack
interfaces to simplify and make reliable the calling
from PlaybackThread and RecordThread as needed.  We note that
IAfTrackBase may be inherited through virtual base classes -
casting to base is okay, but to derived cannot be determined
in static fashion.

Flag: EXEMPT bugfix
Test: atest CtsMediaAudioTestCases
Test: atest CtsNativeMediaAAudioTestCases
Bug: 410038399
Change-Id: Ie6fdf61293bfaf5ea6d3897344d5a72f01b07666
parent 67a3e162
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment