Hello
I’m trying to use cc.audioEngine.play() to play a clip on loop but I’m unable to stop the playback with cc.audioEngine.stop().
start() {
this.current1 = cc.audioEngine.play(this.clip1, true,1);
}
stopSound1() {
console.log("Stopping");
cc.audioEngine.stop(this.current1);
}
I’m calling stopSound from a button event, and the log is getting printed.
I tried using cc.audioEngine.stopAll() , it works fine, but I want to specifically stop audio clips.
Thanks