Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17117

play an audio twice or more at different time

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 17117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>