// Changes the volume of the given sound public bool changeVolume(ref Sound sound, float volume) { if(sound.channel== -1) return false; sound.volume= volume; Al.alSourcef(sound.channel, Al.AL_GAIN, pMasterVolume*sound.pVolume); return true; }
// Stops the given sound from playing public void stopSound(Sound sound) { if(sound.channel== -1) return; Al.alSourceStop(sound.channel); }
// Finds if the given sound is playing public bool isSoundPlaying(Sound sound) { return isChannelPlaying(sound.channel); }