Files
Cagire/plugins/cagire-plugins/src/main.rs
Raphaël Forment 75a8fd4401
Some checks failed
Deploy Website / deploy (push) Failing after 4m53s
Trying to clena the mess opened by plugins
2026-02-21 01:03:55 +01:00

13 lines
488 B
Rust

use cagire_plugins::CagirePlugin;
use nih_plug::prelude::*;
fn main() {
let mut args: Vec<String> = std::env::args().collect();
// Default to 44100 Hz — nih-plug defaults to 48000 which causes CoreAudio
// to deliver mismatched buffer sizes, crashing the standalone wrapper.
if !args.iter().any(|a| a == "--sample-rate" || a == "-r") {
args.extend(["--sample-rate".into(), "44100".into()]);
}
nih_export_standalone_with_args::<CagirePlugin, _>(args);
}