Hey guys,
I'm using SAE to play a .wav sound effect for a bomb fuse. The bombs have varying fuse lengths (time before they explode). My fuse.wav is 8seconds long, as long as the longest fuse.
I'm using this code to play the fuse.
[[SimpleAudioEngine sharedEngine] playEffect:@"fuse.wav"];
I've found this method.
[[SimpleAudioEngine sharedEngine] stopEffect:<#(ALuint)#>];
I'd like to stop the fuse.wav before playing an explode sound effect. Obviously, if this happens 4 seconds in, the fuse sound playing begin the explosion will sound weird.
My question (at long last) is, how to I work out the soundID that is intended to go into the stopEffect: method..
Or am i being stupid, and do i simply do..
[[SimpleAudioEngine sharedEngine] stopEffect:@"fuse.wav"];