SealedConstructs a new default XG insertion processor.
The sample rate, in Hertz.
The maximum buffer size the synthesizer can render at once.
Attempting to .process() more samples than this will result in an error.
The channel routed through the insertion effect, 0-based.
127 or a value that's above the current channel count means OFF.
ProtectedprocessorThe currently used processor.
Gets the current 16-bit type of the processor.
The 16-bit ((MSB << 8) | LSB) type of the processor used.
Process the effect in insertion mode and overwrites it to the input. The DSP honors Dry/Wet in this case.
The input buffer to process. It always starts at index 0.
The input buffer to process. It always starts at index 0.
The amount of samples to mix. This will never be larger than SynthProcessorOptions.maxBufferSize of the parent SpessaSynthProcessor instance.
Sets the given effect parameter to the given value.
The parameter number (0-based).
The value: 14-bit for two-byte params, 7-bit for single-byte params.
Sets the type of the processor. Per XG spec, BASIC EFFECT (LSB = 0) should be used if the exact match is missing.
Type change should reset the parameters. Fallback behavior (no BASIC EFFECT) is up to the implementation.
The 16-bit type value to use.
The default implementation for XGInsertionBlock.