Skip to content

feat: added output picker and EQ button setting for the player bar - #46

Merged
ZortexSenpai merged 1 commit into
mainfrom
feat/player-bar-output-picker
Dec 4, 2026
Merged

ZortexSenpai merged 1 commit into
mainfrom
feat/player-bar-output-picker

Conversation

@ZortexSenpai

Copy link
Copy Markdown
Owner

Summary

Two opt-in player bar settings in Settings → Audio: an output picker that switches Device configs from the bar, and a switch to hide the EQ button.

 <PlayerBar>
   right controls
     <SignalPathIndicator>
-    EQ button
+    EQ button                      (unless showEqButton is off)
     Queue button
+    <OutputPicker>                 (when showOutputPicker is on)
     <VolumeSlider>
 <NowPlayingOverlay>
   <SignalPathIndicator>
+  <OutputPicker>                   (when showOutputPicker is on)
   <VolumeSlider>
<OutputPicker> (src/components/player/OutputPicker.tsx)
  trigger: speaker icon, "Output: <active config>"
    red while the active config's device is unplugged (a locked config waiting)
  menu
    Output
    ( ) System default        Shared, at the device's own rate
    (•) Desk DAC              Topping D90SE · Exclusive · Matches source rate
    ( ) Headphones            Device not connected · Exclusive · Locked   ← red
    ( ) HQPlayer on studio    HQPlayer at studio.local
    ─────────
    Manage device configs  →  /settings#audio

Picking a config does the same as picking it in Settings: it sets activeDeviceConfig, and the backend switches output only if the target changed, carrying the playing Song across. The summary line moved out of SettingsView into deviceConfigSummary(), so the picker and Settings show the same text.

 Settings → Audio
   Device configs
   Config at startup
+  Output picker in the player bar          [off]
+  Parametric EQ button in the player bar   [on]
   Device sample rate

Evidence

  • Before: switching Device configs meant going to Settings → Audio; the EQ button was always in the bar.
    After: the real frontend, driven in a headless browser with the Tauri IPC stubbed (three configs, one with its device unplugged):
    open picker, pick "Headphones"       → settings_set_prefs { activeDeviceConfig: "phones" }
    trigger label afterwards             → "Output: Headphones · Device not connected"
    "Manage device configs"              → /settings#audio
    EQ button toggle off                 → settings_set_prefs { showEqButton: false }, EQ button gone from the bar
    page errors                          → none
    
  • New deviceConfigSummary tests: device, Shared/Exclusive, Matches source rate, Locked; an unplugged device leads with "Device not connected"; HQPlayer configs name their address.
  • scrobbling_prefs_survive_a_camel_case_round_trip now covers showOutputPicker / showEqButton; old_settings_files_parse_with_pref_defaults checks the picker defaults off and the EQ button on.
  • npm test (214), tsc --noEmit, and the Rust settings tests (14) pass.

Not yet tried in the Tauri window itself.

Merge Danger

Door: two-way

Both new fields default so existing settings files get today's player bar (picker off, EQ button on), and older versions ignore the unknown fields.

Blast Radius: player bar

With the picker on, the right controls get one more 32 px button; they fit in the bar's existing 256 px column. Picking a config reopens the output, the same path Settings already uses.

🤖 Generated with Claude Code

The player bar can show an output picker: a speaker button beside the
volume that switches Device configs without opening Settings. Off by
default; turned on in Settings → Audio.

- Picker lists System default and every Device config with the same
  summary as Settings, in red for one whose device is unplugged. The
  button turns red while the active config's device is away (a locked
  config waiting for it). "Manage device configs" opens Settings →
  Audio. Also shown in the full-screen player, beside the volume.
- The player bar's EQ button can be hidden. On by default; Ctrl/⌘+E
  still opens the EQ.
- Preferences.showOutputPicker (default off) and showEqButton (default
  on), so existing settings files keep today's player bar.
- Config summary moved to deviceConfigSummary(), shared by Settings and
  the picker; the Audio section gets an #audio anchor.
- Strings in all four languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ZortexSenpai
ZortexSenpai merged commit 652cb2c into main Dec 4, 2026
10 checks passed
@ZortexSenpai
ZortexSenpai deleted the feat/player-bar-output-picker branch December 4, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant