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

            _currentSession.GroupFinished -= OnGroupFinished;

            _currentSession.Dispose();
            _currentSession = null;
        }
Ejemplo 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;
        }