private void DisposeInternally() { Stop(); if (SourceVoice != null) { SourceVoice.Clear(); VoicePool.PutVoice(SourceVoice, WaveFormat); SourceVoice = null; } if (_dataStream != null) { _dataStream.Dispose(); _dataStream = null; } }
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); } }