Esempio n. 1
0
 private void EndRecordingSession()
 {
     _form.UpdateStartButton();
     _form.UpdatePlayingTitle("Spotify");
     Ready = true;
     _form.UpdateIconSpotify(false);
     _sound.SetSpotifyToMute(false);
     _sound.SetToHigh();
     _form.StopRecording();
 }
Esempio n. 2
0
        private void EndRecordingSession()
        {
            Ready = true;

            if (_userSettings.SpotifyAudioSession != null)
            {
                MutesSpotifyAds(false);
                _userSettings.SpotifyAudioSession.SetSpotifyVolumeToHighAndOthersToMute(false);

                Spotify.ListenForEvents    = false;
                Spotify.OnPlayStateChange -= OnPlayStateChanged;
                Spotify.OnTrackChange     -= OnTrackChanged;
                Spotify.OnTrackTimeChange -= OnTrackTimeChanged;
            }

            _form.UpdateStartButton();
            _form.UpdatePlayingTitle(SPOTIFY);
            _form.UpdateIconSpotify(false);
            _form.StopRecording();
        }
Esempio n. 3
0
        private void EndRecordingSession()
        {
            if (Running)
            {
                Running = false;
            }

            Ready = true;

            _sound.SetSpotifyToMute(false);
            _sound.SetAppsVolume();

            Spotify.Instance.ListenForEvents    = false;
            Spotify.Instance.OnPlayStateChange -= OnPlayStateChanged;
            Spotify.Instance.OnTrackChange     -= OnTrackChanged;
            Spotify.Instance.OnTrackTimeChange -= OnTrackTimeChanged;

            _form.UpdateStartButton();
            _form.UpdatePlayingTitle("Spotify");
            _form.UpdateIconSpotify(false);
            _form.StopRecording();
        }