Ejemplo 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;
            }
        }
Ejemplo 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);
            }
        }