Project

General

Profile

Actions

Emulator Issues #12315

closed

Cubeb won't render audio if audio is Switched to Dualchock 4 controller

Added by dragushell over 3 years ago. Updated over 1 year ago.

Status:
Fixed
Priority:
Normal
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Current
Regression:
Yes
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
5.0-17955

Description

[ALL GAMES]

[ALL GAME ID's]

[MD5 HASH not applicable]

What's the problem? Describe what went wrong.

[Cubeb won't render any audio if audio is switched to DS4 controller with earphones plugged in, renders fine otherwise. Workaround in 5.0 10947 due to it being the last version that included Xaudio2 plugin which worked fine. Wasapi exclusive mode if switched to controller will return black screen. Please refer to this thread for additional info https://forums.dolphin-emu.org/Thread-friendly-request-to-devs ]

What steps will reproduce the problem?

[Connect a Dualshock 4 Controller through USB , plug Headsets into controller, Switch audio to Headset earphone (Wireless Controller) in Windows, verify that the sound is working in Windows or any other app or x86 game, Boot Dolphin 5.0-12964 on Windows 10 with default settings, Go to options-audio setting and make sure Cubeb is selected as default audio Backend, Boot any game in Dolphin, ]

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

[5.0 12964 YES]

Is the issue present in the latest stable version?

[Yes if we refer to the latest beta! No, if we refer to 5.0 from 4 years ago ]

If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)

[5.0-10950 ]

If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer

[N/A]

What are your PC specifications? (CPU, GPU, Operating System, more)

[AMD DX 8370, R9 390, windows 10 v2004]

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

[Anything else here]

Actions #1

Updated by JosJuice over 3 years ago

  • Milestone set to Current
  • Regression changed from No to Yes

Marking as a regression since this worked on the removed XAudio backend.

Actions #2

Updated by Billiard26 over 3 years ago

I'll summarize the forum thread.

Someone confirmed this is caused by the device only supporting mono output.
They said Firefox does work (which uses cubeb).
The only relevant difference I saw between Firefox's and our code was the version of cubeb.

We might just need to update Cubeb in Externals.

Actions #3

Updated by filoppi over 3 years ago

There is a PR already:
https://github.com/dolphin-emu/dolphin/pull/8920
Now slightly outdated but might be worth testing already (the PR is complete from my side).

Actions #4

Updated by filoppi over 3 years ago

Can confirm that DS4 audio works under the latest cubeb (while it's broken in the current Dolphin version). Also, it's worth noting that the DS4 is NOT a mono audio device, and it's 32kHz.
DS4 audio also works in the new WASAPI from my Audio PR.

Actions #5

Updated by JMC4789 almost 3 years ago

  • Status changed from New to Accepted

This apparently is a cubeb bug and we need to update.

Actions #6

Updated by Billiard26 over 1 year ago

Can you please confirm that this is fixed in 5.0-17955 or later?

Actions #7

Updated by dragushell over 1 year ago

Billiard26 wrote in #note-6:

Can you please confirm that this is fixed in 5.0-17955 or later?

Yes, issue is fixed now, just tested, thanks

Actions #8

Updated by Billiard26 over 1 year ago

  • Status changed from Accepted to Fixed
  • Assignee set to AdmiralCurtiss
  • Fixed in set to 5.0-17955
Actions

Also available in: Atom PDF