mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
JackClient -> JackConnection
This commit is contained in:
parent
c3f9aa7549
commit
411d4bc91d
23 changed files with 55 additions and 51 deletions
|
|
@ -35,7 +35,7 @@ pub use self::sample_viewer::SampleViewer;
|
|||
/// The sampler plugin plays sounds.
|
||||
#[derive(Debug)]
|
||||
pub struct Sampler {
|
||||
pub jack: Arc<RwLock<JackClient>>,
|
||||
pub jack: Arc<RwLock<JackConnection>>,
|
||||
pub name: String,
|
||||
pub mapped: [Option<Arc<RwLock<Sample>>>;128],
|
||||
pub recording: Option<(usize, Arc<RwLock<Sample>>)>,
|
||||
|
|
@ -49,7 +49,7 @@ pub struct Sampler {
|
|||
pub output_gain: f32
|
||||
}
|
||||
impl Sampler {
|
||||
pub fn new (jack: &Arc<RwLock<JackClient>>, name: &str) -> Usually<Self> {
|
||||
pub fn new (jack: &Arc<RwLock<JackConnection>>, name: &str) -> Usually<Self> {
|
||||
Ok(Self {
|
||||
midi_in: jack.midi_in(&format!("M/{name}"))?,
|
||||
audio_ins: vec![
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue