Tier 3 Series 206

206A: The Mixer Board

Pilot Record
Student Profile
"Controlling volume by accessing `AudioSource.volume` on 50 different scripts is a nightmare. A Pilot routes all audio through a central "Audio Mixer" to control Master, SFX, and Music groups globally."

The Concept: Routing

The Audio Mixer acts as the central nervous system for sound.

* **Groups:** Categories (Music, SFX, UI).
* **Routing:** `source.outputAudioMixerGroup = sfxGroup;`
* **Benefit:** Changing the "SFX Volume" slider instantly affects 1,000 different explosions.
Red Flag Detected

The AI Trap: "The Script Slider"

You ask the AI: "Make a volume slider for the music."

// AI-Generated Code: Hard References
public AudioSource musicSource;
public void SetVolume(float vol) {
    // Audit Fail: This only controls ONE song.
    // What about the menu music? The boss music?
    musicSource.volume = vol;
}

This is "Scope Myopia." The setting only applies to the current object, not the system.

Elite Telemetry

Research shows "Elite" teams achieve 15% faster lead times by keeping AI on a "very tight leash."

  • Small Batches Solving one problem at a time prevents logic drift.
  • Modular Design Localizing the "blast radius" of AI changes.
  • Tight Loops Rapid iteration with constant code review.

The Pilot's Correction

Corrective Protocol
// Corrected: Global Control
public AudioMixer mixer;
public void SetMusicVol(float vol) {
    mixer.SetFloat("MusicVol", Mathf.Log10(vol) * 20);
}
Your Pilot Command
> A skilled Pilot directs the AI to use the Mixer. You command: "Expose the 'MusicVol' parameter in the Audio Mixer and drive it via `mixer.SetFloat`."
Next Mission
The 3D Ear