public void Stop(bool notifyListeners) { State = PlaybackStateCode.Stopped; if (notifyListeners && Callback != null) { Callback.OnPlaybackStatusChanged(State); } currentPosition = CurrentStreamPosition; GiveUpAudioFocus(); UnregisterAudioNoisyReceiver(); RelaxResources(true); if (wifiLock.IsHeld) { wifiLock.Release(); } }