Esempio n. 1
0
        private void DisposeInternally()
        {
            Stop();

            if (SourceVoice != null)
            {
                SourceVoice.Clear();

                VoicePool.PutVoice(SourceVoice, WaveFormat);
                SourceVoice = null;
            }

            if (_dataStream != null)
            {
                _dataStream.Dispose();
                _dataStream = null;
            }
        }
Esempio n. 2
0
        private void DisposeInternally()
        {
            Stop();

            if (SourceVoice != null)
            {
                SourceVoice.Clear();
                VoicePool.PutVoice(SourceVoice, WaveFormat);
            }

            if (_overLapDataStream != null)
            {
                _overLapDataStream.Dispose();
            }

            if (_overlapSourceVoice != null)
            {
                _overlapSourceVoice.Clear();
                VoicePool.PutVoice(_overlapSourceVoice, WaveFormat);
            }
        }