Use snake case for JACK client names
Like we're doing with the ports now.
This commit is contained in:
parent
d7e766ca00
commit
d777b02d33
|
@ -297,7 +297,8 @@ impl Jack {
|
||||||
/// standalone should expose JACK MIDI ports.
|
/// standalone should expose JACK MIDI ports.
|
||||||
pub fn new<P: Plugin>(config: WrapperConfig) -> Result<Self> {
|
pub fn new<P: Plugin>(config: WrapperConfig) -> Result<Self> {
|
||||||
let audio_io_layout = config.audio_io_layout_or_exit::<P>();
|
let audio_io_layout = config.audio_io_layout_or_exit::<P>();
|
||||||
let (client, status) = Client::new(P::NAME, ClientOptions::NO_START_SERVER)
|
let plugin_name = P::NAME.to_lowercase().replace(' ', "_");
|
||||||
|
let (client, status) = Client::new(&plugin_name, ClientOptions::NO_START_SERVER)
|
||||||
.context("Error while initializing the JACK client")?;
|
.context("Error while initializing the JACK client")?;
|
||||||
if !status.is_empty() {
|
if !status.is_empty() {
|
||||||
anyhow::bail!("The JACK server returned an error: {status:?}");
|
anyhow::bail!("The JACK server returned an error: {status:?}");
|
||||||
|
|
Loading…
Reference in a new issue