groovebox: draw sample info

This commit is contained in:
🪞👃🪞 2025-05-11 03:32:24 +03:00
parent 4e2702f69e
commit e00d870d70
4 changed files with 63 additions and 31 deletions

View file

@ -4,7 +4,7 @@ use crate::*;
#[derive(Debug)]
pub struct Sampler {
/// Name of sampler.
pub name: String,
pub name: Arc<str>,
/// Device color.
pub color: ItemTheme,
/// Audio input ports. Samples get recorded here.
@ -55,7 +55,7 @@ impl Default for Sampler {
input_meters: vec![0.0;2],
output_meters: vec![0.0;2],
audio_outs: vec![],
name: "tek_sampler".to_string(),
name: "tek_sampler".into(),
mapped: [const { None };128],
unmapped: vec![],
voices: Arc::new(RwLock::new(vec![])),