commit | f6eb4c388b6499752c2ee47b663956dcbf0dd7e4 | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Tue Feb 25 14:06:25 2020 -0800 |
committer | jiabin <jiabin@google.com> | Wed Feb 26 16:16:44 2020 -0800 |
tree | 032329fc713202ce01d5e17420f47bd6025f041c | |
parent | c62ad13ad8da6b31168f0d9f3e5f2a770ed0bbee [diff] |
Add callback for codec format change. When creating native audio track, a IAudioTrackCallback will be created systematically. All callbacks will be cached in Threads and protected by a lock. Whenever there is a callback event from audio HAL, it will finally trigger callback to native audio track. Currently, there is only one callback event, which is codec format change. Bug: 150301890 Test: manual Change-Id: I32293627ed923b17dd25f11f0ee0a0c35cd7c01f