1
0
Fork 0

Use snake case for JACK client names

Like we're doing with the ports now.
This commit is contained in:
Robbert van der Helm 2023-02-23 23:00:19 +01:00
parent d7e766ca00
commit d777b02d33

View file

@ -297,7 +297,8 @@ impl Jack {
/// standalone should expose JACK MIDI ports.
pub fn new<P: Plugin>(config: WrapperConfig) -> Result<Self> {
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")?;
if !status.is_empty() {
anyhow::bail!("The JACK server returned an error: {status:?}");