@digimikeh wrote:
Hi there!
if I understand well, i save into an int type an instance of an audio when i play it:
int bgm_main = cocos2d::AudioEngine::play2d("./bgm.ogg", true);
so i can set some properties like:
cocos2d::AudioEngine::setVolume(bgm_main, 0.7f);
but what is the way to play the same audio again?.. do i need to redo this?:
int bgm_main = cocos2d::AudioEngine::play2d("./bgm.ogg", true);
or can i usue bgm_main in other way?
Thanks
Posts: 1
Participants: 1