Skip to content

Multiple Aux inputs stopped working #212

@ardura

Description

@ardura

I have been using 5 aux inputs as a multi channel oscilloscope in Nih-Plug Plugin here

Since I'm in the middle of a rewrite, I decided to update Nih Plug from my older version to current. Once I did that the extra aux inputs stopped working and only the main input and 1 of the sidechain inputs work. I confirmed this by testing from multiple DAWs.

My older version is built with with nih_plug commit: (Mar 22 2023) e59dc33

And my version with non working aux inputs is: (Feb 28 2025) 18ec34e

My AUDIO_IO_LAYOUTS looks like the following:

    const AUDIO_IO_LAYOUTS: &'static [AudioIOLayout] = &[
        AudioIOLayout {
            main_input_channels: NonZeroU32::new(2),
            main_output_channels: NonZeroU32::new(2),
            aux_input_ports: &[new_nonzero_u32(2); 5],
            aux_output_ports: &[],
            names: PortNames {
                layout: Option::None,
                main_input: Some("Main Input"),
                aux_inputs: &[
                    "Aux 1",
                    "Aux 2",
                    "Aux 3",
                    "Aux 4",
                    "Aux 5",
                ],
                main_output: Option::None,
                aux_outputs: &[]
            }
        },
        AudioIOLayout {
            main_input_channels: NonZeroU32::new(1),
            main_output_channels: NonZeroU32::new(1),
            aux_input_ports: &[new_nonzero_u32(1); 5],
            ..AudioIOLayout::const_default()
        },
    ];

I tried to look through the AudioIOLayout commits but didn't see anything that could be affecting it. Let me know if you need more information or where else I can look to debug/troubleshoot

Edited for formatting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions