Detect if Music / Sound is playing

Hello,
i need help. I am new to GS and working on a project where different Sounds / Music is played randomly. I want to detect if a Sound is still playing before i generate a new random number and let it play. Something like a random playlist..
Any idea?
Regards from Germany!
i need help. I am new to GS and working on a project where different Sounds / Music is played randomly. I want to detect if a Sound is still playing before i generate a new random number and let it play. Something like a random playlist..
Any idea?
Regards from Germany!
Comments
and then do something like
"if game.musictime = 1,
do (whatever u want to do here)
Next question, is it possible to load something like a data file with the soundfile lengths and add them to the game attributes? Something like a primitive database..