[PR #1173] [MERGED] Launcher: say when a prepared version has no sounds, and that Prepare again fixes it #3386

Closed
opened 2026-11-03 04:09:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1173
Author: @ludovic111
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: fix/launcher-says-no-sounds


📝 Commits (1)

  • 16738c9 Launcher: say when a prepared version has no sounds (#1035)

📊 Changes

4 files changed (+59 additions, -7 deletions)

View changed files

📝 launcher/src/backend.rs (+50 -0)
📝 launcher/src/cli.rs (+4 -2)
📝 launcher/src/main.rs (+4 -4)
📝 launcher/src/mcp.rs (+1 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Part of #1035 (no sound on Windows; mrpatitas, and johhnyjefferson34133 on a Realtek and a Focusrite device). The launcher now says when a prepared version has no sounds, and makes Prepare again (which copies them) the visible fix:

horizon-launcher versions --installed prints prepared, no sounds (prepare again), and the MCP list_versions gives "sounds": false.

Why: what the audio code and the logs say

I read the output path end to end (crates/horizon-client/src/audio.rs):

  • Device choice. cpal's default host (WASAPI on Windows), default device first, then every other output; one failing device doesn't leave the game silent.
  • Format. The device's own default config, any sample format (f32, i16, …, converted from the f32 mixer). No fixed 44.1/48 kHz or stereo assumption: mono outputs are handled too.
  • Errors. Opening failures are logged (Horizon: no sound: …), stream errors too.

mrpatitas's log has Horizon: audio output FxSound Speakers (FxSound Audio Enhancer) (48000 Hz, 2 channels, f32): the stream opened on a standard format. johhnyjefferson34133 saw the same silence on two unrelated devices, and changing the sample rate made no difference. A device or WASAPI fault wouldn't hit every device and every rate alike. A game with no sounds to play does.

That is #1076: Mojang republished the 26.3 asset index, and from then on the launcher's sound copy refused it for every new install (official launcher and Prism alike). The game then ran with an empty sound registry on a working device. #1091 (merged) accepts the republished index, and #1090 makes the game log no sounds in ….

One gap remained, and this PR closes it. A version prepared during that window kept resources without sounds. A new version installed later reuses those resources (reuse_prepared: same Minecraft jars, so "compatible"), so it was silent too, and the launcher showed it as plainly Prepared. Nothing told the player that Prepare again would fix it.

How

  • backend::has_sounds(tag): the version's resources hold assets/minecraft/sounds.json, the file the game's sound registry reads.
  • backend::resources_summary(prepared, sounds, version): the Play page's line; with sounds missing the Prepare button is Secondary (filled) instead of Ghost.
  • CLI versions --installed and MCP list_versions report it.

Proof (Mac mini)

launcher: cargo fmt --check                                             OK
launcher: set -o pipefail; cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings   exit 0
launcher: cargo test --features gpui/runtime_shaders                    all pass (new: resources_without_sounds_are_reported)
tools/parity.py --changed origin/main --list                            0 harnesses (launcher only)

Scratch launcher home with a prepared v2026.10.21 and no sounds.json: versions --installed → * v2026.10.21 prepared, no sounds (prepare again); after adding it → * v2026.10.21 prepared. Screenshot above (the window, same home).

Not verified, and what's needed

No Windows machine was available, so the Windows side is not verified. What proves it is a Windows player on the next release: prepare (or Prepare again), then hear the title music and button clicks. If it's still silent with the launcher showing Prepared (with sounds), the game's latest.log lines starting Horizon: audio output / Horizon: no sound / no sounds in will say whether it's the device after all. Hence Refs, not Fixes: #1035 stays open until a reporter confirms.

Also from the issue: a sound device picker like vanilla's (Music & Sounds → Device) would let FxSound users pick their real speakers. That's a feature on its own; it's in FEATURES.md's LATER list.

Refs #1035

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1173 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-says-no-sounds` --- ### 📝 Commits (1) - [`16738c9`](https://github.com/horizon-rust/horizon/commit/16738c9f26da6e98473498cb05a70a8232de677e) Launcher: say when a prepared version has no sounds (#1035) ### 📊 Changes **4 files changed** (+59 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/backend.rs` (+50 -0) 📝 `launcher/src/cli.rs` (+4 -2) 📝 `launcher/src/main.rs` (+4 -4) 📝 `launcher/src/mcp.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Part of #1035 (no sound on Windows; **mrpatitas**, and **johhnyjefferson34133** on a Realtek and a Focusrite device). The launcher now says when a prepared version has no sounds, and makes **Prepare again** (which copies them) the visible fix: <img src="https://raw.githubusercontent.com/ludovic111/horizon/e24e0ab90a5f10f336245642b5cb7c63c498db17/no-sounds/launcher-prepared-without-sounds.png" width="70%"> `horizon-launcher versions --installed` prints `prepared, no sounds (prepare again)`, and the MCP `list_versions` gives `"sounds": false`. ## Why: what the audio code and the logs say I read the output path end to end (`crates/horizon-client/src/audio.rs`): - **Device choice.** cpal's default host (WASAPI on Windows), default device first, then every other output; one failing device doesn't leave the game silent. - **Format.** The device's own default config, any sample format (f32, i16, …, converted from the f32 mixer). No fixed 44.1/48 kHz or stereo assumption: mono outputs are handled too. - **Errors.** Opening failures are logged (`Horizon: no sound: …`), stream errors too. mrpatitas's log has `Horizon: audio output FxSound Speakers (FxSound Audio Enhancer) (48000 Hz, 2 channels, f32)`: the stream opened on a standard format. johhnyjefferson34133 saw the same silence on two unrelated devices, and changing the sample rate made no difference. A device or WASAPI fault wouldn't hit every device and every rate alike. A game with **no sounds to play** does. That is #1076: Mojang republished the 26.3 asset index, and from then on the launcher's sound copy refused it for every new install (official launcher and Prism alike). The game then ran with an empty sound registry on a working device. #1091 (merged) accepts the republished index, and #1090 makes the game log `no sounds in …`. One gap remained, and this PR closes it. A version prepared during that window kept resources without sounds. A new version installed later reuses those resources (`reuse_prepared`: same Minecraft jars, so "compatible"), so it was silent too, and the launcher showed it as plainly *Prepared*. Nothing told the player that Prepare again would fix it. ## How - `backend::has_sounds(tag)`: the version's resources hold `assets/minecraft/sounds.json`, the file the game's sound registry reads. - `backend::resources_summary(prepared, sounds, version)`: the Play page's line; with sounds missing the Prepare button is `Secondary` (filled) instead of `Ghost`. - CLI `versions --installed` and MCP `list_versions` report it. ## Proof (Mac mini) ``` launcher: cargo fmt --check OK launcher: set -o pipefail; cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings exit 0 launcher: cargo test --features gpui/runtime_shaders all pass (new: resources_without_sounds_are_reported) tools/parity.py --changed origin/main --list 0 harnesses (launcher only) ``` Scratch launcher home with a prepared v2026.10.21 and no `sounds.json`: `versions --installed` → `* v2026.10.21 prepared, no sounds (prepare again)`; after adding it → `* v2026.10.21 prepared`. Screenshot above (the window, same home). ## Not verified, and what's needed **No Windows machine was available**, so the Windows side is not verified. What proves it is a Windows player on the next release: prepare (or Prepare again), then hear the title music and button clicks. If it's still silent with the launcher showing *Prepared* (with sounds), the game's `latest.log` lines starting `Horizon: audio output` / `Horizon: no sound` / `no sounds in` will say whether it's the device after all. Hence `Refs`, not `Fixes`: #1035 stays open until a reporter confirms. Also from the issue: a **sound device picker** like vanilla's (Music & Sounds → Device) would let FxSound users pick their real speakers. That's a feature on its own; it's in FEATURES.md's LATER list. Refs #1035 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3386
No description provided.