Trying to clena the mess opened by plugins

This commit is contained in:
2026-02-21 01:03:55 +01:00
parent 5ef988382b
commit e9bca2548c
67 changed files with 1246 additions and 69 deletions

View File

@@ -0,0 +1,12 @@
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);
}