JackClient -> JackConnection

This commit is contained in:
🪞👃🪞 2024-12-29 15:32:39 +01:00
parent c3f9aa7549
commit 411d4bc91d
23 changed files with 55 additions and 51 deletions

View file

@ -7,7 +7,7 @@ pub use self::lv2::LV2Plugin;
#[derive(Debug)]
pub struct Plugin {
/// JACK client handle (needs to not be dropped for standalone mode to work).
pub jack: Arc<RwLock<JackClient>>,
pub jack: Arc<RwLock<JackConnection>>,
pub name: String,
pub path: Option<String>,
pub plugin: Option<PluginKind>,
@ -40,7 +40,7 @@ impl Debug for PluginKind {
}
impl Plugin {
pub fn new_lv2 (
jack: &Arc<RwLock<JackClient>>,
jack: &Arc<RwLock<JackConnection>>,
name: &str,
path: &str,
) -> Usually<Self> {
@ -131,7 +131,7 @@ audio!(|self: PluginAudio, client, scope|{
impl Plugin {
/// Create a plugin host device.
pub fn new (
jack: &Arc<RwLock<JackClient>>,
jack: &Arc<RwLock<JackConnection>>,
name: &str,
) -> Usually<Self> {
Ok(Self {