wip: fixing refactor errors pt.1

This commit is contained in:
🪞👃🪞 2024-11-09 22:30:55 +01:00
parent 84aacfea82
commit a6d6f5f06d
3 changed files with 28 additions and 16 deletions

View file

@ -148,7 +148,7 @@ pub struct Phrase {
/// MIDI message structural
pub type PhraseData = Vec<Vec<MidiMessage>>;
#[derive(Default, Debug, Clone)]
#[derive(Debug)]
pub struct Mixer {
/// JACK client handle (needs to not be dropped for standalone mode to work).
pub jack: Arc<RwLock<JackClient>>,
@ -159,30 +159,25 @@ pub struct Mixer {
}
/// A mixer track.
#[derive(Default, Debug, Clone)]
#[derive(Debug)]
pub struct MixerTrack {
pub name: String,
/// Inputs and outputs of 1st and last device
pub ports: JackPorts,
/// Device chain
pub devices: Vec<JackDevice>,
/// Device selector
pub device: usize,
pub devices: Vec<JackClient>,
}
/// The sampler plugin plays sounds.
#[derive(Default, Debug, Clone)]
#[derive(Debug)]
pub struct Sampler {
pub jack: Arc<RwLock<JackClient>>,
pub name: String,
pub cursor: (usize, usize),
pub editing: Option<Arc<RwLock<Sample>>>,
pub mapped: BTreeMap<u7, Arc<RwLock<Sample>>>,
pub unmapped: Vec<Arc<RwLock<Sample>>>,
pub voices: Arc<RwLock<Vec<Voice>>>,
pub ports: JackPorts,
pub buffer: Vec<Vec<f32>>,
pub modal: Arc<Mutex<Option<Box<dyn Exit + Send>>>>,
pub output_gain: f32
}