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); } }
private void TestDelay() { SaveMicConfig(); if (_DelayTest == null) { return; } _DelaySound = CSound.PlaySound(ESounds.T440); _DelayTestRunning = true; }
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); }
//! 배경음을 재생한다 public void PlayBackgroundSound(string a_oFilepath, bool a_bIsLoop = true) { this.BackgroundVolume = m_fBackgroundVolume; m_oBackgroundSound.PlaySound(a_oFilepath, a_bIsLoop, false); }