Merge branch 'parity-base' into parity/hud

This commit is contained in:
Ludovic Marie
2026-10-11 15:43:47 +02:00
6 changed files with 299 additions and 17 deletions
+5
View File
@@ -360,6 +360,11 @@ impl Audio {
}
}
fn open(mixer: Arc<Mutex<Mixer>>) -> Result<cpal::Stream> {
// Test runs (harnesses, agents) launch the game on a virtual screen;
// keep them off the user's speakers.
if std::env::var_os("HORIZON_NO_AUDIO").is_some() {
return Err("audio output disabled by HORIZON_NO_AUDIO".into());
}
let host = cpal::default_host();
let device = host
.default_output_device()