mirror of https://github.com/axmolengine/axmol.git
bb004c5e22
* [audio] Fixes some issues while stop/uncache right after play/preload on OSX/iOS platform. * Better state control in AudioCache. * Adds State enum class which contains INITIAL, LOADING, READY, FAILED states. * AudioPlayer::destroy should check AudioCache::_isAudioLoaded flag, otherwise, app will freeze in cpp-tests/NewAudioEngineTest/6:Test invalid audio file. * Should check whether state is INITIAL in the destructor of AudioCache. * Adds test case for switching play state frequently. * Skips invoking reading data callback if cache's state is INITIAL. * Variables initialization for AudioCache class and fixes protential missing delete AL buffers. |
||
---|---|---|
.. | ||
NewAudioEngineTest.cpp | ||
NewAudioEngineTest.h |