Is this the proper use of StopSound(int)?
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
geronimo

StopSound(cursoundchan);
cursoundchan=PlaySound(MoveSound,50);

When trying to be sure I found cursoundchan counting endlessly up into the thousands and that didn't help my surety. It does stop the sound before playing it again^^

Posted on 2004-04-19 03:54:55 (last edited on 2004-04-19 03:55:31)

vecna

Yup thats right.

The channel number returned isnt just the channel number, its the channel number concatenated with a unique identifier.

So if you play sound1, and it goes into channel 15, and then a few minutes later you play sound2, and that goes into channel 15, but then you do a stopsound on sound1, which is already over, sound2 will NOT be stopped just because its in the same numerical channel number.

Posted on 2004-04-19 12:56:20

el_desconocido

Geez.
That's why your vecna!

Posted on 2004-04-19 13:58:36


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.