Move the unsupported aux warning to CPAL backend
We'll support this with JACK, and in the dummy backend there is no audio IO anyways.
This commit is contained in:
parent
9e2c2b776b
commit
3a6efe49ec
2 changed files with 9 additions and 8 deletions
|
@ -284,6 +284,15 @@ impl Cpal {
|
||||||
nih_log!("Audio-only, MIDI input and output has not been implemented yet.");
|
nih_log!("Audio-only, MIDI input and output has not been implemented yet.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// There's no obvious way to do sidechain inputs and additional outputs with the CPAL
|
||||||
|
// backends like there is with JACK. So we'll just provide empty buffers instead.
|
||||||
|
if !audio_io_layout.aux_input_ports.is_empty() {
|
||||||
|
nih_warn!("Sidechain inputs are not supported with this audio backend");
|
||||||
|
}
|
||||||
|
if !audio_io_layout.aux_output_ports.is_empty() {
|
||||||
|
nih_warn!("Auxiliary outputs are not supported with this audio backend");
|
||||||
|
}
|
||||||
|
|
||||||
Ok(Cpal {
|
Ok(Cpal {
|
||||||
config,
|
config,
|
||||||
audio_io_layout,
|
audio_io_layout,
|
||||||
|
|
|
@ -212,14 +212,6 @@ impl<P: Plugin, B: Backend<P>> Wrapper<P, B> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Sidechain inputs and auxiliary outputs
|
|
||||||
if !audio_io_layout.aux_input_ports.is_empty() {
|
|
||||||
nih_warn!("Sidechain inputs are not yet supported in this standalone version");
|
|
||||||
}
|
|
||||||
if !audio_io_layout.aux_output_ports.is_empty() {
|
|
||||||
nih_warn!("Auxiliary outputs are not yet supported in this standalone version");
|
|
||||||
}
|
|
||||||
|
|
||||||
let wrapper = Arc::new(Wrapper {
|
let wrapper = Arc::new(Wrapper {
|
||||||
backend: AtomicRefCell::new(backend),
|
backend: AtomicRefCell::new(backend),
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue