public bool stopSound(string name) { SoundSpecification sound = getSound(name); if (sound != null) { return(sound.stop()); } else { return(false); } }
public bool playSound(string name, double speed, bool cycle) { SoundSpecification sound = getSound(name); if (sound != null) { // sound.attachTo(referentialPoint); return(sound.play(speed, cycle)); } else { return(false); } }