The Dink Network

Reply to Re: How to stop playsounds?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 13th 2008, 08:34 PM
dinkdead.gif
You can stop a sound, similar to what Rabid said but you need to use sound_set_kill() instead of just kill().

//start playing sound
int &sound = playsound();

//stop playing sound
sound_set_kill(&sound);