Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public AudioRecorder()
 {
     sampleAggregator = new SampleAggregator();
     RecordingFormat  = new WaveFormat(44100, 1);
 }