[PR #2472] [MERGED] Wire the Music Frequency option to the music manager #4346

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2472
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/music-frequency


📝 Commits (2)

  • ad6f232 Wire the Music Frequency option to the music manager
  • 1fe0f5f Sound options: Music Frequency starts its own row, as in SoundOptionsScreen

📊 Changes

3 files changed (+30 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+8 -1)
📝 crates/horizon-client/src/game/music.rs (+6 -1)
📝 crates/horizon-client/src/options_ui.rs (+16 -0)

📄 Description

What and why

options.txt had a musicFrequency value and MusicManager::set_frequency existed, but nothing connected them, so music always played at the default rate. The music manager now starts with the saved value and follows the option when it changes, and the Music & Sound Options screen has the Music Frequency button (Default, Frequent, Constant).

Vanilla reference

Options.musicFrequency (its listener calls MusicManager.setMinutesBetweenSongs) and SoundOptionsScreen, which lists it with the subtitles option. MusicManager takes the loaded option when it is created.

Self-check

cargo check -p horizon-client passes.


🔄 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/2472 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/music-frequency` --- ### 📝 Commits (2) - [`ad6f232`](https://github.com/horizon-rust/horizon/commit/ad6f2320b0a6bbfaa016f9b1f978d8348989015a) Wire the Music Frequency option to the music manager - [`1fe0f5f`](https://github.com/horizon-rust/horizon/commit/1fe0f5fcb9690f3dd3886153960ada3a63c6635e) Sound options: Music Frequency starts its own row, as in SoundOptionsScreen ### 📊 Changes **3 files changed** (+30 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+8 -1) 📝 `crates/horizon-client/src/game/music.rs` (+6 -1) 📝 `crates/horizon-client/src/options_ui.rs` (+16 -0) </details> ### 📄 Description ## What and why `options.txt` had a `musicFrequency` value and `MusicManager::set_frequency` existed, but nothing connected them, so music always played at the default rate. The music manager now starts with the saved value and follows the option when it changes, and the Music & Sound Options screen has the Music Frequency button (Default, Frequent, Constant). ## Vanilla reference `Options.musicFrequency` (its listener calls `MusicManager.setMinutesBetweenSongs`) and `SoundOptionsScreen`, which lists it with the subtitles option. `MusicManager` takes the loaded option when it is created. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:30 +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#4346
No description provided.