diasurgical / devilutionX

Diablo build for modern operating systems
Other
8.02k stars 786 forks source link

[Issue Report]: Audio -- Problems with plugging/unplugging headphones #7452

Open Venyam-N opened 2 days ago

Venyam-N commented 2 days ago

Operating System

Windows x64

DevilutionX version

1.5.3

Describe

The game is started sounding from my laptop's built-in speakers. Then I plug in my headphones and the game crashes (A). Or, if I start the game sounding from my headphones, unplugging them (and auto-switching to speakers) glitches the sound (B).

To Reproduce

A:

  1. Start the game sounding from speakers with unplugged headphones
  2. Plug your headphones in
  3. Game crashes. Or else, sound starts to glitch, and when you unplug the headhones and the game crashes anyway.

B:

  1. Start the games with plugged headphones
  2. Unplug them -- sound stream switches to speakers and starts to glitch
  3. Plug headphones back -- game sounds ok
  4. Unplug them again -- sound glitches etc

Expected Behavior

It should sound ok both ways

Additional context

PC Configuration (according to HWiNFO): HP ProBook 445 G7 on HP 8730 motherboard AMD Zen Audio Processor / HD Audio Controller with Realtek High Definition Audio driver v. 6.0.9703.1 Windows 10 Pro 22H2 build 19045.4780 In-game audio settings are default.

AJenbo commented 4 hours ago

I think this is likely a SDL issue, I tested on Android and it didn't have the issue so it's probably platform dependent.

could you test the latest win9x build (it uses a different SDL version so might not have the issue).

StephenCWills commented 4 hours ago

Also, you shared your PC setup, but nothing about your headphones. Are these USB/Bluetooth/Aux? Can you share the make/model?