Esempio n. 1
0
 public MySourceVoice(MySourceVoicePool owner, SourceVoice voice)
 {
     m_owner      = owner;
     m_voice      = voice;
     m_isPlaying  = false;
     m_isPaused   = false;
     m_isLoopable = false;
 }
 public MySourceVoice(MySourceVoicePool owner, SourceVoice voice)
 {
     m_owner = owner;
     m_voice = voice;
     m_isPlaying = false;
     m_isPaused = false;
     m_isLoopable = false;
 }
Esempio n. 3
0
        private void InitVoicePools()
        {
            List <MyWaveFormat> waveFormats = m_waveBank.GetWaveFormats();

            if (waveFormats.Count > 0)
            {
                m_voicePools = new Dictionary <MyWaveFormat, MySourceVoicePool>(waveFormats.Count, new MyWaveFormat.Comparer());
                foreach (MyWaveFormat waveFormat in waveFormats)
                {
                    m_voicePools[waveFormat] = new MySourceVoicePool(m_audioEngine, waveFormat.WaveFormat, this);
                }
            }
        }