mirror of https://github.com/axmolengine/axmol.git
Revert "Revert "Update NewAudioEngineTest.cpp""
This reverts commit 379c099b2d
.
This commit is contained in:
parent
379c099b2d
commit
8c71708323
|
@ -238,7 +238,7 @@ bool AudioControlTest::init()
|
||||||
|
|
||||||
auto playItem = TextButton::create("play", [&](TextButton* button){
|
auto playItem = TextButton::create("play", [&](TextButton* button){
|
||||||
if (_audioID == AudioEngine::INVALID_AUDIO_ID) {
|
if (_audioID == AudioEngine::INVALID_AUDIO_ID) {
|
||||||
_audioID = AudioEngine::play2d("wav-samples/8kadpcm.wav", _loopEnabled, _volume);
|
_audioID = AudioEngine::play2d("background.mp3", _loopEnabled, _volume);
|
||||||
|
|
||||||
if(_audioID != AudioEngine::INVALID_AUDIO_ID) {
|
if(_audioID != AudioEngine::INVALID_AUDIO_ID) {
|
||||||
_isStopped = false;
|
_isStopped = false;
|
||||||
|
|
Loading…
Reference in New Issue