commit | 8502b724a9fdc104e7b4a3aba1641e101b4c7be9 | [log] [tgz] |
---|---|---|
author | Jay Shrauner <shrauner@google.com> | Wed Feb 26 10:08:37 2014 -0800 |
committer | Jay Shrauner <shrauner@google.com> | Wed Mar 05 12:26:33 2014 -0800 |
tree | f9d9739d3baff68e392a1f4ed62b532beefbfdb2 | |
parent | 30df46f9e6794df82ad5f762416d6e7fb8e71b89 [diff] |
Fix AudioEngine to allow re-initialization Add AudioEngine::CompareAndSetEngine and change VariableSpeed::initializeEngine to use this method so it only initializes a new engine once rather than asserting on subsequent calls. Change AudioEngine::DeleteEngine so it ignores repeated calls instead of asserting. Add VariableSpeed::isReadyToPlay so callers can detect when the audio library has been properly initialized. Bug:11511992 Change-Id: I4517cb2ab4c186da43dffc7dbc2a9ad49000059f