Skip to content

feat: add refresh button to manually update audio device list#438

Open
fadyehabamer wants to merge 2 commits into
fxsound2:mainfrom
fadyehabamer:feature/refresh-devices-button
Open

feat: add refresh button to manually update audio device list#438
fadyehabamer wants to merge 2 commits into
fxsound2:mainfrom
fadyehabamer:feature/refresh-devices-button

Conversation

@fadyehabamer

Copy link
Copy Markdown

Description

Problem

Sometimes when connecting Bluetooth headphones, the app continues to output sound through the laptop speakers until the Bluetooth device is reconnected. This occurs because the device list is not automatically refreshed when new audio devices connect.

Solution

Adds a manual refresh button to re-fetch connected audio devices, addressing the issue where Bluetooth headphones may not be automatically detected when connected.

  • Added refreshOutputs() method in FxController to manually refresh the audio device list by querying AudioPassthru
  • Added a reload button (↻) in FxProView positioned next to the output device dropdown
  • Button click triggers device list refresh, allowing users to manually update available audio devices

Changes Made

  • fxsound/Source/GUI/FxController.h: Added refreshOutputs() method declaration
  • fxsound/Source/GUI/FxController.cpp: Implemented refreshOutputs() to fetch and update device list
  • fxsound/Source/GUI/FxProView.h: Added Button::Listener interface and refresh_button_ member
  • fxsound/Source/GUI/FxProView.cpp: Implemented button UI, positioning, and click handler

Testing

Manual testing required:

  1. Connect Bluetooth headphones
  2. Click the refresh button next to the output device selector
  3. Verify the device list updates with the newly connected device

Branch

feature/refresh-devices-button

- Added refreshOutputs() method in FxController to manually refresh device list
- Added reload button (↻) in FxProView next to output device selector
- Button triggers device list refresh when clicked
@fadyehabamer

Copy link
Copy Markdown
Author

@bvijay74 could you please review this PR in order to be accepted?

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