Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, I'm using C .Net. (I have to use Version 2 of .dot net). I have a lot of sounds, hundreds of them. But I don't want them to play on top of each other ever. How exactly would I code this in C Net. if (no other sound is playing) { engine.Play2D("bang.wav); } Thank from a C begginer! |
||||
|
You can use engine.IsCurrentlyPlaying(soundfilename) |
||||
|
Problem is I'm dealing with 100's of possible file names. The code seems to suggest I need to specify a specific filename. Please advise. |
||||
|
When you play your sound, put the name you play in an array. When you check if there is anything still played, check for all the names in the array. If the engine returns false for such a name, remove the name from that array. |
|