Exemple #1
0
        // TODO: event for updating time?

        /**
         * Constructors
         */
        public AudioTrack(int recordingDeviceIndex, string projectDirectory)
        {
            this.recordingDeviceIndex = recordingDeviceIndex;
            this.projectDirectory     = projectDirectory;

            // TODO: get rid of?
            sampleAggregator = new SampleAggregator();
            sampleAggregator.NotificationCount = waveFormat.SampleRate / 10;

            this.State = AudioTrackState.Monitoring;
        }
Exemple #2
0
 public AudioRecorder()
 {
     sampleAggregator = new SampleAggregator();
     RecordingFormat  = new WaveFormat(44100, 1);
 }