Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
141 stars 2 forks source link

Bluetooth headphones audio output bug #2714

Open bobjbo opened 3 months ago

bobjbo commented 3 months ago

Describe the bug?

When you disconnect bluetooth headphones unexpectedly like them dying or you turning them off then trying to reconnect them without restarting resonite causes the audio output to nolonger output from them

To Reproduce

connect bluetooth headphones and start resonite then turn them off when the game loads, turn the back on and connect them then try and use them as the games audio output

Expected behavior

I expected it to just output audio to the headphones

Screenshots

No response

Resonite Version Number

Every version so far

What Platforms does this occur on?

Windows

What headset if any do you use?

I use a bigscreen beyond but this is related to headphones

Log Files

LAPTOP-OT5GN80K - 2024.7.25.1284 - 2024-08-03 18_27_05.log

Additional Context

No response

Reporters

No response

shiftyscales commented 2 months ago

Hi @bobjbo - if you are still having this issue, could you attach the Player.log in addition to the Resonite log? The location of these log files can be found on the wiki: https://wiki.resonite.com/Log_Files

From the log you have provided, I noticed the following line which is of interest:

6:28:15 PM.297 (151 FPS)    Refreshing audio devices due to a change
6:28:15 PM.302 (151 FPS)    DefaultCapture: Microphone (Beyond), ID: {0.0.1.00000000}.{b89bccc1-4c88-45a0-96de-71e625ee361e}
6:28:15 PM.302 (151 FPS)    DefaultOutput: 1 - C24F390 (AMD High Definition Audio Device), ID: {0.0.0.00000000}.{d1d547d9-76e4-4d86-815a-fc5da2cfb745}

This suggests to me that when your headset is being disconnected, Windows is changing the default audio device to the HDMI output of your GPU- if you try listening to that output, does the Resonite audio come through?

If you manually change the output in Windows to default back to the headphones / force Resonite to use the headphones in the audio setting inside of Resonite- are you able to get sound back?

bobjbo commented 2 months ago

@shiftyscales Later in that same log file it says

6:28:52 PM.504 (133 FPS) Refreshing audio devices due to a change 6:28:52 PM.508 (133 FPS) DefaultCapture: Microphone (Beyond), ID: {0.0.1.00000000}.{b89bccc1-4c88-45a0-96de-71e625ee361e} 6:28:52 PM.508 (133 FPS) DefaultOutput: Headphones (WH-1000XM4), ID: {0.0.0.00000000}.{19219e25-f4b9-4258-86fb-063e63a41af4}

which is my headphones reconnecting but it doesn't output back to the headphones, although recently I did the same thing and just turning on "Use device default" seemed to fix it but it would be nice to not have to do that each time I have to reconnect headphones or something.

shiftyscales commented 2 months ago

So inside of Resonite itself, do you typically have "Use System Output Device" enabled? Or are you manually specifying the device?

bobjbo commented 2 months ago

I usually specify it

shiftyscales commented 2 months ago

And the issue only occurs while manually specifying it? If you go back into the list of audio devices after the headphones have been reconnected, has the order of the list changed at all?

bobjbo commented 2 months ago

I think it reorders the list I don't remember and am currently not on the game to test

shiftyscales commented 2 months ago

Well when you have a chance to, please do- it would be helpful to understand what is going on as clearly as possible so we have the best understanding for what might be going wrong. Thanks for the additional info you've provided so far. :)

bobjbo commented 2 months ago

It does not re order it after reconnect

shiftyscales commented 2 months ago

Hmm- if it's still at the top of the list of selected devices I'd expect that it should resume outputting to that device without having to change that setting.

Seeking input from @Frooxius - is there anything else that can be done to help diagnose / debug this issue?