AI Command Lab // Flight Simulator
206C: The Ducking Signal
Initial AI Output (Fragile)
// AI-Generated Code: Spaghetti Logic
IEnumerator AlarmRoutine() {
musicSource.volume = 0.2f;
alarmSource.Play();
yield return new WaitForSeconds(3);
musicSource.volume = 1.0f;
}
Initial AI Prompt
"You ask the AI: "Lower the music when the alarm plays.""
Pilot Comm Link
Mission Objective: A skilled Pilot directs the AI to use the Mixer. You command: "Add a Send effect to the Alarm Group and a Ducking Compressor to the Music Group."
Optimized Protocol
// Corrected: Signal Processing // No Code Needed! // This is handled entirely by the Audio Mixer graph. // The code just plays the alarm; the mixer handles the fade.