commit | 959b5b8abaacb9d00be558042450a86bb1c54da5 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Fri Sep 24 10:46:20 2021 -0700 |
committer | Andy Hung <hunga@google.com> | Tue Sep 28 11:39:44 2021 -0700 |
tree | 9c93724ebacea0fa061b61cf1d369f7dc48686e4 | |
parent | 8437fc5d1d08f8f6ba6cd02530008fb7f49c14fa [diff] |
AudioTrack: Improve pause handling. Add pauseAndWait() method to ensure that the pause is completed (ramped to silence) before any other operation, especially flush(). Incorporate into MediaPlayer pause(). Test: Clarity video with scrubbing bar. Test: Ringtone and Alarm playback. Bug: 196194083 Change-Id: Id8842c6c8abfd76d11b8316a95052c2e0da7fb7c