Use buffer pool

This commit is contained in:
Skyler Lehmkuhl
2025-10-18 23:45:27 -04:00
parent d4fb8b721a
commit 5e91882d01
4 changed files with 104 additions and 0 deletions
+7
View File
@@ -1,4 +1,5 @@
use crate::audio::{ClipId, MidiClip, MidiClipId, TrackId};
use crate::audio::buffer_pool::BufferPoolStats;
/// Commands sent from UI/control thread to audio thread
#[derive(Debug, Clone)]
@@ -62,6 +63,10 @@ pub enum Command {
AddMidiNote(TrackId, MidiClipId, f64, u8, u8, f64),
/// Add a pre-loaded MIDI clip to a track
AddLoadedMidiClip(TrackId, MidiClip),
// Diagnostics commands
/// Request buffer pool statistics
RequestBufferPoolStats,
}
/// Events sent from audio thread back to UI/control thread
@@ -75,4 +80,6 @@ pub enum AudioEvent {
BufferUnderrun,
/// A new track was created (track_id, is_metatrack, name)
TrackCreated(TrackId, bool, String),
/// Buffer pool statistics response
BufferPoolStats(BufferPoolStats),
}