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

Skip to content
Commit f86d269d authored by Atneya's avatar Atneya
Browse files

Refactor AudioTrack callback to Interface

Part 1 of a refactor of AudioTrack callback to increase type safety.
 - Replace callback_t with IAudioTrackCallback listener interface for
seperate notifications for each event type. Retain legacy_callback_t
 - Duplicate set/constructor methods to provide ABI stability
 - LegacyCallbackWrapper to wrap legacy_callback_t consuming methods
 - Retain wp<IAudioTrackCallback> to avoid ownership cycles and provide
 clear ownership semantics
 - Take ownership of LegacyCallbackWrapper if necessary

Bug: 199156212
Test: Compiles
Change-Id: Id089da86a617cb6273ea1d4efeaf2c854df10ede
parent f727b4d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment