Module nih_plug::audio_setup
source · Expand description
Types and definitions surrounding a plugin’s audio IO setup.
Structs
- A description of a plugin’s audio IO configuration. The
Plugindefines a list of supported audio IO configs, with the first one acting as the default layout. Depending on the plugin API, the host may pick a different configuration from the list and use that instead. The final chosen configuration is passed as an argument to thePlugin::initialize()function so the plugin can allocate its data structures based on the number of audio channels it needs to process. - Contains auxiliary (sidechain) input and output buffers for a process call.
- Configuration for (the host’s) audio buffers.
- Contains names for the ports defined in an
AudioIOLayout. Setting these is optional, but it makes working with multi-output plugins much more convenient.
Enums
- The plugin’s current processing mode. Exposed through
BufferConfig::process_mode. The host will reinitialize the plugin whenever this changes.
Functions
- Construct a
NonZeroU32value at compile time. Equivalent toNonZeroU32::new(n).unwrap().