mpogue2 / SquareDesk

Fully-featured music player and sequence designer, designed for square dance callers
10 stars 4 forks source link

Bug: Sound FX come out of speaker when BT connected #1085

Open mpogue2 opened 7 months ago

mpogue2 commented 7 months ago

SquareDesk status line says that "Thunder Flash" (Bose BT headphones) are connected, and when I click Play, music comes out of the headphones. BUT, when I hit Cmd-2 to get a sound effect, it comes out of the MacBook Air's speaker, instead of the BT headset.

I don't know whether this problem occurs when connected to the mixer via the headphone jack.

mpogue2 commented 6 months ago

Same as #1093.

Here's what's happening:

mpogue2 commented 6 months ago

The fix is to always tell the soundEffect QMediaPlayer to setAudioOutput to the current default-constructed QAudioOutput, which correctly reflects the CURRENT sound output device setting.

Commit: 2e03263a8b86099730ff9d4074debe35efe20553