public void Stop() { _threadDispatcher.Invoke(new Action(() => { BassFx.BASS_FX_BPM_BeatCallbackReset(_recordChan); if (HasWasapi) { _wasapi.Stop(); _wasapi.Dispose(); _wasapi = null; BassWasapi.BASS_WASAPI_Free(); } else { Bass.BASS_ChannelStop(_recordChan); } Bass.BASS_Free(); })); }