コード例 #1
0
        public void Fade(int streamID, int targetVolume, float seconds, EStreamAction afterFadeAction = EStreamAction.Nothing)
        {
            if (!_Initialized)
            {
                return;
            }
            float targetVolumeF = targetVolume.Clamp(0, 100) / 100f;

            lock (_Streams)
            {
                if (_StreamExists(streamID))
                {
                    _Streams[_GetStreamIndex(streamID)].Fade(targetVolumeF, seconds, afterFadeAction);
                }
            }
        }
コード例 #2
0
 public static void Fade(int stream, int targetVolume, float seconds, EStreamAction afterFadeAction = EStreamAction.Nothing)
 {
     _Playback.Fade(stream, targetVolume, seconds, afterFadeAction);
 }
コード例 #3
0
ファイル: CMain.cs プロジェクト: da-ka/Vocaluxe
 public void Fade(int soundStream, int targetVolume, float duration, EStreamAction afterFadeAction = EStreamAction.Nothing)
 {
     CSound.Fade(soundStream, targetVolume, duration, afterFadeAction);
 }
コード例 #4
0
 public void Fade(float targetVolume, float seconds, EStreamAction afterFadeAction)
 {
     _Fading          = new CFading(Volume, targetVolume, seconds);
     _AfterFadeAction = afterFadeAction;
 }