commit | aec565e30b59b8f5677f96ee335520a5ab809f8c | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Wed Feb 22 16:31:28 2023 -0800 |
committer | Mikhail Naganov <mnaganov@google.com> | Wed Feb 22 16:35:58 2023 -0800 |
tree | 17057d354b5198b6319fc2f3f5a89e484fb4f413 | |
parent | f5839887036c207c9c58bd2808f0af1e191d0489 [diff] |
audioflinger: Move async callback setting to onFirstRef Since initializing async callback involves passing PlaybackThread's 'this' around, it's safer to do that in 'onFirstRef' instead of the constructor. Since 'onFirstRef' runs before the thread loop is started, shared data access model is not affected. Bug: 206737711 Test: atest CtsMediaAudioTestCases:AudioTrackOffloadTest Test: check offloaded playback on the device Change-Id: I26f76b9ff843c871911fe3546027cb197f1f0272