public void Exit() { Streaming = false; Client?.Close(); Client?.Dispose(); Client2114?.Close(); Client2114?.Dispose(); Task.Run(() => StreamEnd?.Invoke()); }
void IXAudio2VoiceCallback.OnStreamEnd() { StreamEnd?.Invoke(this, EventArgs.Empty); }