Emulator Issues #12315

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

Added by dragushell 6 months ago. Updated 5 months ago.

% Done:


Operating system:
Issue type:
Relates to usability:
Relates to performance:
Relates to maintainability:
Regression start:
Fixed in:




[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 ]

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 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:


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]


#1 Updated by JosJuice 6 months ago

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

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

#2 Updated by Billiard26 6 months 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.

#3 Updated by filoppi 6 months ago

There is a PR already:
Now slightly outdated but might be worth testing already (the PR is complete from my side).

#4 Updated by filoppi 5 months 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.

Also available in: Atom PDF