[PR #5270] [CLOSED] Give the splitscreen audio copy the fields it now needs #6178

Closed
opened 2026-11-03 06:15:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5270
Author: @MSedgeMC
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: fix/audio-share-fields


📝 Commits (1)

  • 8d04545 Give the splitscreen audio copy the fields it now needs

📊 Changes

1 file changed (+10 additions, -0 deletions)

View changed files

📝 crates/horizon-client-render/src/audio.rs (+10 -0)

📄 Description

main cannot build its test targets right now, and this is why. Audio gained four device-list fields behind the audio feature in 10cc390c2 ("Audio: the mixer callback neither allocates nor copies world names"); Audio::new was updated to initialise them and Audio::share — the splitscreen constructor — was not. Building horizon-client-render with the feature on fails with E0063: missing fields cards_seen, default_seen, device_ticks and 1 other field in initializer of Audio, and since horizon-client's test target compiles that crate with audio enabled, every bin test in the game fails to build before a single test runs.

Found while trying to run one of my own PRs' tests: cargo test -p horizon-client --bin horizon-client <filter> on a clean origin/main (384197a49) fails at this, not at the test.

The fix is the four fields in share's initialiser, mirroring new's: the split player shares this output, so it takes the same device lists, with a fresh device_ticks. Verified on a build box: with this patch cargo check -p horizon-client-render --lib --features audio is clean, and cargo test -p horizon-client --bin horizon-client --no-run compiles (it does not without it).

No behaviour change — nothing reads those fields through share before the first tick, and the split player polls the same device lists as the owner, which is what the values say.


🔄 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/5270 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/audio-share-fields` --- ### 📝 Commits (1) - [`8d04545`](https://github.com/horizon-rust/horizon/commit/8d0454568ee72bfeaaf5c7e686e05b7f7f1f14a9) Give the splitscreen audio copy the fields it now needs ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/audio.rs` (+10 -0) </details> ### 📄 Description **`main` cannot build its test targets right now, and this is why.** `Audio` gained four device-list fields behind the `audio` feature in `10cc390c2` ("Audio: the mixer callback neither allocates nor copies world names"); `Audio::new` was updated to initialise them and `Audio::share` — the splitscreen constructor — was not. Building `horizon-client-render` with the feature on fails with `E0063: missing fields cards_seen, default_seen, device_ticks and 1 other field in initializer of Audio`, and since `horizon-client`'s test target compiles that crate with audio enabled, **every bin test in the game fails to build** before a single test runs. Found while trying to run one of my own PRs' tests: `cargo test -p horizon-client --bin horizon-client <filter>` on a clean `origin/main` (`384197a49`) fails at this, not at the test. The fix is the four fields in `share`'s initialiser, mirroring `new`'s: the split player shares this output, so it takes the same device lists, with a fresh `device_ticks`. Verified on a build box: with this patch `cargo check -p horizon-client-render --lib --features audio` is clean, and `cargo test -p horizon-client --bin horizon-client --no-run` compiles (it does not without it). No behaviour change — nothing reads those fields through `share` before the first tick, and the split player polls the same device lists as the owner, which is what the values say. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:15:35 +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#6178
No description provided.