Record audio tracks

This commit is contained in:
Skyler Lehmkuhl
2025-10-23 01:08:45 -04:00
parent 48ec738027
commit 20c3b820a3
26 changed files with 12673 additions and 5192 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ use crate::audio::{
TrackId,
};
use crate::audio::buffer_pool::BufferPoolStats;
use crate::io::WaveformPeak;
/// Commands sent from UI/control thread to audio thread
#[derive(Debug, Clone)]
@@ -132,8 +133,8 @@ pub enum AudioEvent {
RecordingStarted(TrackId, ClipId),
/// Recording progress update (clip_id, current_duration)
RecordingProgress(ClipId, f64),
/// Recording stopped (clip_id, pool_index)
RecordingStopped(ClipId, usize),
/// Recording stopped (clip_id, pool_index, waveform)
RecordingStopped(ClipId, usize, Vec<WaveformPeak>),
/// Recording error (error_message)
RecordingError(String),
/// Project has been reset