Mention standalone inputs not auto connecting
This commit is contained in:
parent
9cd440231e
commit
72d3b61a42
2 changed files with 14 additions and 0 deletions
|
@ -132,6 +132,13 @@ impl Cpal {
|
||||||
pub fn new<P: Plugin>(config: WrapperConfig, cpal_host_id: cpal::HostId) -> Result<Self> {
|
pub fn new<P: Plugin>(config: WrapperConfig, cpal_host_id: cpal::HostId) -> Result<Self> {
|
||||||
let host = cpal::host_from_id(cpal_host_id).context("The Audio API is unavailable")?;
|
let host = cpal::host_from_id(cpal_host_id).context("The Audio API is unavailable")?;
|
||||||
|
|
||||||
|
if config.input_device.is_none() && P::DEFAULT_INPUT_CHANNELS > 0 {
|
||||||
|
nih_log!(
|
||||||
|
"Audio inputs are not connected automatically to prevent feedback. Use the \
|
||||||
|
'--input-device' option to choose an input device."
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// No input device is connected unless requested by the user to avoid feedback loops
|
// No input device is connected unless requested by the user to avoid feedback loops
|
||||||
let input_device = config
|
let input_device = config
|
||||||
.input_device
|
.input_device
|
||||||
|
|
|
@ -184,6 +184,13 @@ impl Jack {
|
||||||
anyhow::bail!("The JACK server returned an error: {status:?}");
|
anyhow::bail!("The JACK server returned an error: {status:?}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.connect_jack_inputs.is_none() && P::DEFAULT_INPUT_CHANNELS > 0 {
|
||||||
|
nih_log!(
|
||||||
|
"Audio inputs are not connected automatically to prevent feedback. Use the \
|
||||||
|
'--connect-jack-inputs' option to connect the input ports."
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
let mut inputs = Vec::new();
|
let mut inputs = Vec::new();
|
||||||
let num_input_channels = config.input_channels.unwrap_or(P::DEFAULT_INPUT_CHANNELS);
|
let num_input_channels = config.input_channels.unwrap_or(P::DEFAULT_INPUT_CHANNELS);
|
||||||
for port_no in 1..num_input_channels + 1 {
|
for port_no in 1..num_input_channels + 1 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue