commit | 8c617cdb672ff5c71db7bfacbc45b2545d0cfc60 | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Wed Sep 18 10:33:39 2013 -0700 |
committer | The Android Automerger <android-build@android.com> | Wed Sep 18 13:40:48 2013 -0700 |
tree | 57b68d45cbd4e4cafee6b19ae283e315341be3a1 | |
parent | 1919419a00023d4f16aaadc6b15cd9d8db3634c6 [diff] |
Partial fix for SoundPool not terminating SoundPool was waiting for EVENT_UNDERRUN only to indicate end of clip. In J, AudioTrack delivered both EVENT_UNDERRUN followed by EVENT_BUFFER_END. However, as of K, AudioTrack is only delivering EVENT_BUFFER_END (this lack of EVENT_UNDERRUN is another bug which still needs to be fixed). The workaround is to also respond to EVENT_BUFFER_END in SoundPool. Bug: 10787103 Change-Id: Id68a23bddd6dd9df6c49c55138197260d71ca468