commit | d7a267de78771cfc68ce1a3ccef1f2c95f096db4 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Fri Apr 01 18:14:28 2016 -0700 |
committer | Eric Laurent <elaurent@google.com> | Mon Apr 04 12:53:01 2016 -0700 |
tree | b5114eeefe35eec7b63f352d8f660c2c0f132c82 | |
parent | 063988c40ca328b32198cf35fd99a1fd314ba3da [diff] |
MediaActionSound: fix SoundPool load race condition If play() was called shortly after load() and before the load completion callback, the sample was considered loaded although the SoundPool was not ready to play it. Fixed by implementing a more robust state machine for sound load and play control. Bug: 22499793 Change-Id: I727e07f842a0adc5225dc248f16bc4a7225a1c8e