Class SoundMixerEffectLoopRouteResolver
Pure, engine-agnostic resolver that turns an effect-loop definition + a source group name into the concrete set of AudioMixer exposed-parameter names (SoundMixerEffectLoopRoute) required to apply the loop. This keeps Unity parameter names inside SoundMixer configuration and out of EventDispatcher actions, and is unit-testable without Unity.
Inherited Members
Namespace: Serenity.SoundMixer.Application.Routing
Assembly: Serenity.SoundMixer.Application.dll
Syntax
public static class SoundMixerEffectLoopRouteResolver
Methods
TryResolve(ISoundMixerEffectLoopDefinition, string, out SoundMixerEffectLoopRoute, out string)
Attempts to resolve the routing parameters for applying definition from
sourceGroupName. Source-group matching is ordinal (exact). Returns false with a
clear error when no route is configured for the group, or when the matched route
is missing the source attenuation/send parameter names.
Declaration
public static bool TryResolve(ISoundMixerEffectLoopDefinition definition, string sourceGroupName, out SoundMixerEffectLoopRoute route, out string error)
Parameters
| Type | Name | Description |
|---|---|---|
| ISoundMixerEffectLoopDefinition | definition | The registered effect-loop definition. |
| string | sourceGroupName | The logical source group to apply from. |
| SoundMixerEffectLoopRoute | route | The resolved route on success; null on failure. |
| string | error | A human-readable reason on failure; null on success. |
Returns
| Type | Description |
|---|---|
| bool | True when a complete route was resolved; otherwise false. |