Esempio n. 1
0
        void IRenderer.PlayStart()
        {
            if (waveOut == null)
            {
                CreateWaveOut();
            }

            _naudioTrackerStream = new NAudioTrackerStream(Player);
            waveOut.Init(_naudioTrackerStream);

            waveOut.Play();
        }
Esempio n. 2
0
 private void CloseWaveOut()
 {
     if (waveOut != null)
     {
         // waveOut.Stop();
     }
     if (_naudioTrackerStream != null)
     {
         // this one really closes the file and ACM conversion
         //volumeStream.Close();
         //volumeStream = null;
         // this one does the metering stream
         _naudioTrackerStream.Close();
         _naudioTrackerStream = null;
     }
     if (waveOut != null)
     {
         waveOut.Dispose();
         // waveOut = null;
     }
 }