|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Metal-friendly mixer subset (linear + crossfade) with split fallback. More...


Go to the source code of this file.
Classes | |
| struct | SimMetalMixOperatorConfig |
| Configuration for the metal_mix operator. More... | |
Typedefs | |
| typedef struct SimMetalMixOperatorConfig | SimMetalMixOperatorConfig |
| Configuration for the metal_mix operator. | |
Functions | |
| const char * | metal_mix_mode_name (SimMixerMode mode) |
| Return the schema name for a metal-mix mode. | |
| bool | metal_mix_mode_from_name (const char *name, SimMixerMode *out_mode) |
| Parse a metal-mix mode name. | |
| SimResult | sim_add_metal_mix_operator (struct SimContext *context, const SimMetalMixOperatorConfig *config, size_t *out_index) |
| Register a metal-friendly mixer subset operator. | |
| SimResult | sim_metal_mix_config (struct SimContext *context, size_t operator_index, SimMetalMixOperatorConfig *out_config) |
| Copy the current metal-mix configuration from a registered operator. | |
| SimResult | sim_metal_mix_update (struct SimContext *context, size_t operator_index, const SimMetalMixOperatorConfig *config) |
| Replace or renormalize a registered metal-mix configuration. | |
Metal-friendly mixer subset (linear + crossfade) with split fallback.
| typedef struct SimMetalMixOperatorConfig SimMetalMixOperatorConfig |
Configuration for the metal_mix operator.
Supports only SIM_MIXER_MODE_LINEAR and SIM_MIXER_MODE_CROSSFADE.
| bool metal_mix_mode_from_name | ( | const char * | name, |
| SimMixerMode * | out_mode | ||
| ) |
Parse a metal-mix mode name.
Only SIM_MIXER_MODE_LINEAR and SIM_MIXER_MODE_CROSSFADE are accepted.
| name | Schema mode name. | |
| [out] | out_mode | Receives the parsed mode on success. |
name maps to a supported metal-mix mode. | const char * metal_mix_mode_name | ( | SimMixerMode | mode | ) |
Return the schema name for a metal-mix mode.
| mode | Mixer mode value. |
| SimResult sim_add_metal_mix_operator | ( | struct SimContext * | context, |
| const SimMetalMixOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a metal-friendly mixer subset operator.
| context | Simulation context that will own the operator. | |
| config | Optional metal-mix configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_metal_mix_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimMetalMixOperatorConfig * | out_config | ||
| ) |
Copy the current metal-mix configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_metal_mix_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| SimResult sim_metal_mix_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimMetalMixOperatorConfig * | config | ||
| ) |
Replace or renormalize a registered metal-mix configuration.
Passing NULL for config keeps the current configuration and reapplies normalization. A successful update refreshes symbolic state and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the metal-mix operator to update. |
| config | Optional replacement configuration. |