Hi,
I have a sound which plays in the background of a game level.
I load it using - wade.preloadAudio(soundName);
Then when the level begins, it plays using wade.playAudioIfAvailable(soundName,true)
The second parameter sets the sound to loop.
Everything seems to be working fine.
When the level ends or the game restarts, I would like to pause the sound
I don't want to unload the sound using wade.unloadAudio() because I plan on starting it again.
I have tried:
audio = wade.getAudio(sound)
bgSound = new Audio(audio.src);
bgSound.pause();
and
wade.getAudio('sound').pause();
The tutorials and documentation are not really clear on how to stop a sound temporarily.
Any help you can provide would be appreciated.
cheers,