public override void Dispose() { if (FBTrack != null) { isValid = false; FBTrack.Dispose(); FBTrack = null; } base.Dispose(); }
void InitBTrack() { isValid = false; if (FBTrack != null) { FBTrack.Dispose(); FBTrack = null; } // TODO: warn, when samplerate is not 44100 Hz if (SampleRate == 44100 && BufferSize >= 2) { FBTrack = new BTrack(/*int)(BufferSize * 0.5)*/ BufferSize, BufferSize); isValid = true; } }