1 decade ago by FragDoctor
I'm just getting to grips with ImpactJS - massively impressed with it so far.
I'm in a position where I would like to be able to play several sounds one after the other in sequence. So if I have:
SoundA.mp3
SoundB.mp3
SoundC.mp3
I'd like to queue them one after the other so that SoundA.mp3 plays, immediately following by SoundB.mp3 and then SoundC.mp3 - all one after the other.
An alternative would be if I could detect when one sound finishes playing so that I could then play the next one myself.
It's not an option to edit them all together in advance.
Does anyone know either:
1) How to queue sounds, or
2) How to detect whether a sound has finished playing
Any help is much appreciated.
I'm in a position where I would like to be able to play several sounds one after the other in sequence. So if I have:
SoundA.mp3
SoundB.mp3
SoundC.mp3
I'd like to queue them one after the other so that SoundA.mp3 plays, immediately following by SoundB.mp3 and then SoundC.mp3 - all one after the other.
An alternative would be if I could detect when one sound finishes playing so that I could then play the next one myself.
It's not an option to edit them all together in advance.
Does anyone know either:
1) How to queue sounds, or
2) How to detect whether a sound has finished playing
Any help is much appreciated.