Exemplo n.º 1
0
        public RecordingsViewModel(RecordingsModel recordingsModel)
        {
            _recordingsModel = recordingsModel;
            _recordingsModel.PropertyChanged += ModelPropertyChanged;

            CreateWorkingDirectory();
        }
Exemplo n.º 2
0
        public RatingControllerViewModel(RatingModel ratingModel, RecordingsModel recordingsModel)
        {
            _ratingModel = ratingModel;
            _ratingModel.PropertyChanged     += ModelPropertyChanged;
            _recordingsModel                  = recordingsModel;
            _recordingsModel.PropertyChanged += ModelPropertyChanged;

            InitializeCommand();
            CreateWorkingDirectory();
        }
        public WasapiCaptureViewModel(WasapiCaptureModel wasapiCaptureModel, RecordingsModel recordingsModel, UsbDeviceDetector deviceDetector)
        {
            _recordingsModel    = recordingsModel;
            _wasapiCaptureModel = wasapiCaptureModel;
            _wasapiCaptureModel.PropertyChanged += ModelPropertyChanged;
            _synchronizationContext              = SynchronizationContext.Current;

            TryInitializeDevices();
            InitializeCommands();
            DisableRecordingPossibility(SelectedDevice != null);
            InitializeUsbDetector(deviceDetector);
        }
Exemplo n.º 4
0
        public AudioPlayerViewModel(VisualisationViewModel visualisationViewModel, RecordingsModel recordingsModel, AudioPlayerModel audioPlayerModel, RatingModel ratingModel)
        {
            _visualization   = visualisationViewModel;
            _recordingsModel = recordingsModel;
            _recordingsModel.PropertyChanged += ModelPropertyChanged;
            _ratingModel      = ratingModel;
            _audioPlayerModel = audioPlayerModel;
            _audioPlayerModel.PropertyChanged += ModelPropertyChanged;

            _audioPlayerHandler = new AudioPlayerHandler(_audioPlayerModel);
            _audioPlayerHandler.MaximumCalculated += audioGraph_MaximumCalculated;
            InitializeCommands();
        }