commit | eb6e65034b3ac0979bfe8b5161d57cc279a3b945 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Mon Apr 29 13:47:40 2019 -0700 |
committer | Andy Hung <hunga@google.com> | Tue Apr 30 10:52:12 2019 -0700 |
tree | 1b0869da92a82e2038f053d29258458e1db79d4c | |
parent | 2f7a6072bbafd4faba8cbaf170d3cb72e37e3454 [diff] |
AudioTrack: Fix callback timing if less than one AF mixer period. Callback may wait nearly the entire period when double buffered which can lead to random glitches. Limit this to half the mixer period. Test: aaudio test write_sine_callback -pl -n1 -r44100 -s20 Bug: 129545307 Bug: 131601263 Change-Id: I6b7478728fe7ead570251662ee48a8f8adad0d5d