public static void sfxSetChannelVolume(SimSet channel, float volume) { SFXSource obj = sfxOldChannelToGroup(channel); if (obj.isObject()) { obj.setVolume(volume); } }
public static string sfxGetChannelVolume(SimSet channel) { SFXSource obj = sfxOldChannelToGroup(channel); return(obj.isObject() ? obj.getVolume().AsString() : "0"); }