Skip to main content

first_bus_layout

Function first_bus_layout 

Source
pub fn first_bus_layout<P: PluginExport>() -> Option<BusLayout>
Expand description

Pick the plugin’s first bus layout, or None when the plugin declares no layouts. Used by wrappers (AAX, VST2) that need to read the layout before host-side bus-config negotiation, where a missing layout would otherwise produce silently-misreported channel counts.

For aumi plugins the returned layout is typically BusLayout::new() (zero in / zero out). AAX synthesizes (2, 2) from that case in register_aax; see default_io_channels for the rationale.

None is the same plugin-author-bug indicator as default_io_channels: log a diagnostic and skip registration.