add check for n_audio_out>2
This commit is contained in:
parent
8172066851
commit
75eeea14f3
3 changed files with 15 additions and 4 deletions
|
@ -38,13 +38,17 @@ Run the eg-amp plugin over the given slice of the file.
|
|||
|
||||
Run the Retro Flanger script from the SWH plugins.
|
||||
|
||||
- `delay_depth_avg` is for the `Average stall (ms)` parameter of the plugin.
|
||||
- `law_freq` is for the `Flange frequency` parameter of the plugin.
|
||||
Parameters:
|
||||
- `delay_depth_avg`: Average stall (ms), 0..10, default 2.5
|
||||
- `law_freq`: Flange frequency (Hz), 0.5..8, default 1
|
||||
|
||||
## `eq split index lo mid hi`
|
||||
|
||||
Run the DJ EQ plugin from the SWH plugins.
|
||||
|
||||
Parameters:
|
||||
- `lo`: Low range
|
||||
|
||||
`lo`, `mid`, and `hi` are the respective dB gains for each frequency range.
|
||||
|
||||
All three ranges accept gains from -70dB to +6dB.
|
||||
|
|
|
@ -95,6 +95,10 @@ pub const WildNoise = struct {
|
|||
}
|
||||
};
|
||||
|
||||
/// Write any float to the image.
|
||||
/// Keep in mind that the bit representation of the float will clash with
|
||||
/// the format of BMP pixel data, which means writing 0 everywhere won't give
|
||||
/// you the black color.
|
||||
pub const Write = struct {
|
||||
data: f32,
|
||||
|
||||
|
|
|
@ -249,11 +249,14 @@ pub const Image = struct {
|
|||
var ports = try lv2.setupPorts(&ctx);
|
||||
|
||||
if (ctx.n_audio_in > 2) {
|
||||
std.debug.warn("plugin <{}> accepts more than two channels.\n", plugin_uri);
|
||||
std.debug.warn("plugin <{}> has more than two inputs.\n", plugin_uri);
|
||||
return ImageError.InvalidPlugin;
|
||||
}
|
||||
|
||||
// TODO check n_audio_out > 2
|
||||
if (ctx.n_audio_out > 2) {
|
||||
std.debug.warn("plugin <{}> has more than two outputs.\n", plugin_uri);
|
||||
return ImageError.InvalidPlugin;
|
||||
}
|
||||
|
||||
// now, for each param for the plugin, we find its port, and set
|
||||
// the value for the port there.
|
||||
|
|
Loading…
Reference in a new issue