ID:1868469
Jun 8 2015, 4:11 am
|
|
By muting one sound, I mean like if a sound is lingering, just make that one sound stop and not the entire game's sounds
|
By forcing a sound to play on a specific channel, you can send a null to that channel to stop that sound from playing. This will require you to know which channel you're playing the sound on though. You'd need to keep track of this somehow.
src << sound(null,channel=channel_of_sound) |
But here's an example of the code needed:
usr << sound('boom.wav', volume=50)
or use the Find proc and make it's volume 0