Esempio n. 1
0
        public void StopRecording()
        {
            if (!IsRecording)
            {
                throw new InvalidOperationException("Recording already stopped.");
            }

            _currentSession.GroupFinished -= OnGroupFinished;

            _currentSession.Dispose();
            _currentSession = null;
        }
Esempio n. 2
0
        public void StartRecording()
        {
            if (IsRecording)
            {
                throw new InvalidOperationException("Recording already started.");
            }

            _currentSession = new RecordingSession(
                SettingProvider.TempFolder,
                _spotifyProcessManager,
                SettingProvider.SongClassificationInfo,
                SettingProvider.SongRefreshInterval,
                _logger
                );

            _currentSession.GroupFinished += OnGroupFinished;
        }