public void PlayEffectSound(string oFilepath, bool bIsLoop = false, bool bIs3DSound = false)
    {
        CSound oSound = this.FindPlayableEffectSound(oFilepath);

        if (oSound != null)
        {
            this.EffectVolume = _fEffectVolume;
            oSound.PlaySound(oFilepath, bIsLoop, bIs3DSound);
        }
    }
Ejemplo n.º 2
0
        private void TestDelay()
        {
            SaveMicConfig();

            if (_DelayTest == null)
            {
                return;
            }

            _DelaySound       = CSound.PlaySound(ESounds.T440);
            _DelayTestRunning = true;
        }
Ejemplo n.º 3
0
 public void Start(int[] channels)
 {
     if (Running)
     {
         return;
     }
     Reset();
     for (int i = 0; i < _DelaysChannel.Length; i++)
     {
         if (i < channels.Length && channels[i] >= 0)
         {
             _DelaysChannel[i].Finished      = false;
             _DelaysChannel[i].Channel       = channels[i];
             _DelaysChannel[i].OrigThreshold = CRecord.GetVolumeThreshold(channels[i]);
             CRecord.SetVolumeThreshold(channels[i], _DelaysChannel[i].OrigThreshold / 3);
         }
         else
         {
             _DelaysChannel[i].Channel = -1;
         }
     }
     _Stream = CSound.PlaySound(ESounds.T440, false);
     Running = true;
 }
 public void PlayBackgroundSound(string oFilepath, bool bIsLoop = true)
 {
     this.BackgroundVolume = _fBackgroundVolume;
     _oBackgroundSound.PlaySound(oFilepath, bIsLoop, false);
 }
Ejemplo n.º 5
0
 //! 배경음을 재생한다
 public void PlayBackgroundSound(string a_oFilepath, bool a_bIsLoop = true)
 {
     this.BackgroundVolume = m_fBackgroundVolume;
     m_oBackgroundSound.PlaySound(a_oFilepath, a_bIsLoop, false);
 }