Beispiel #1
0
        public static void sfxSetChannelVolume(SimSet channel, float volume)
        {
            SFXSource obj = sfxOldChannelToGroup(channel);

            if (obj.isObject())
            {
                obj.setVolume(volume);
            }
        }
Beispiel #2
0
        public static string sfxGetChannelVolume(SimSet channel)
        {
            SFXSource obj = sfxOldChannelToGroup(channel);

            return(obj.isObject() ? obj.getVolume().AsString() : "0");
        }