deweller / switchaudio-osx

Change the audio source for Mac OS X from the command line.
Other
1.16k stars 88 forks source link

Sound Effects not changing #39

Closed Willibaur closed 1 year ago

Willibaur commented 2 years ago

Hi, thanks for this awesome script.

I've come accross an issue with the Sounds Effects source not being updated once I change my output source is this a known issue? I'm not sure if there is anything I need to tweak locally.

I'm using an Edifier set of speakers connected via Bluetooth, I can switch sound without problem but not the effects itself.

ToBro14 commented 1 year ago

I have the same issue. This bug was reported previously, but it was never fixed: https://github.com/deweller/switchaudio-osx/issues/12

deweller commented 1 year ago

I was not able to fix this. I took a look at the code and I can't find anything wrong.

This might be fixed in Mac OS X 12.

jeffnuss commented 1 year ago

Hey @deweller! Thanks for a great tool. I just checked this on macOS 13.2.1 (22D68) using v. 1.2.0 of switchaudio-osx installed via homebrew and I'm still seeing the same behavior.

Specifically, if I have the "Play sound effects through" setting in the "Sound" pane of System Settings set to "Selected Sound Output Device", running SwitchAudioSource -i <device_id> where device_id is a different device than the currently selected one, the "Play sound effects through" setting will then change the device I was using previously. Changing to a different output device will not change the setting again and the original device will remain selected.

Happy to provide any additional info if that'd be helpful.

n8io commented 1 year ago

I ended up running the following work around:

switchaudiosource -t output -i <deviceId> && switchaudiosource -t system <deviceId>
revans23 commented 5 months ago

I ended up running the following work around:

switchaudiosource -t output -i <deviceId> && switchaudiosource -t system <deviceId>

+1

This solution is the easiest!