Project

General

Profile

Emulator Issues #11448

Cubeb breaks when a 7.1 audio device is used

Added by Paul.Hancock.17041993 about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
% Done:

0%

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

Description

Game Name?

all

Game ID? (right click the game in the game list, properties, info tab)

all

MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)

n/a

What's the problem? Describe what went wrong.

Cubeb breaks on 7.1 devices and regresses to a stereo output with all other channels nullified, if PLII decoding is enabled this results in muted footsteps and voices, or anything that would otherwise play out of the surround channels.

What steps will reproduce the problem?

Use a 7.1 device of some sort, HDMI or virtual headphone surround being the most common.
Set audio to LLE Cubeb with PLII decoding enabled
observe missing sounds or odd corruption in PLII games.

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

8993

Is the issue present in the latest stable version?

Yes, (lost the number)

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.)

unknown

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)

nonspecific

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

Note that you should be providing a valid channel mask to WASAPI, as it does have its own upmixing and downmixing system, but will kick you out if you provide a null or invalid mask.
As you only have two modes here, stereo and 5.1, you only need the two masks, which would be;
- 00000000011 (0x3) stereo
- 00000111111 (0x3F) 5.1

Note also that if custom 5.1 > 7.1 mixing is required (which it shouldn't), it's mask is 11000111111 (0x63F), as bits 6, 7 and 8 are the legacy rear-center and front-center speakers that are nolonger used, but remain as a valid mix option for legacy purposes (ie; dont use them!).

Audio logs for reference;
56:10:725 audiocommon\mixer.cpp:21 I[AI]: Mixer is initialized
56:10:727 audiocommon\cubebutils.cpp:71 I[Audio]: Cubeb initialized using wasapi backend
56:10:729 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1332 N[Audio]: default device period: 100000
56:10:729 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1340 N[Audio]: Minimum latency in frames: 480
56:10:729 audiocommon\cubebstream.cpp:61 I[Audio]: Minimum latency: 480 frames
56:10:729 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1679 N[Audio]: (00000161E319FB90) Setup render: device=0000000000000000
56:10:742 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1468 N[Audio]: Using WASAPI suggested format: channels: 8
56:10:742 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1587 N[Audio]: Setup requested=[f=2 r=48000 c=6 l=3f2 lfe] mix=[f=2 r=192000 c=8 l=3f4 lfe]
56:10:762 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1730 N[Audio]: Target sample rate: 48000
56:10:762 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:151 N[Audio]: COM was already initialized in MTA
56:10:768 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
56:10:768 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1233 N[Audio]: Closing thread.
56:10:971 core\hw\dsp.cpp:363 I[AI]: Audio DMA configured: 20 blocks from 0x0138ec80
56:11:759 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:377 N[Audio]: Audio device property value changed.
56:32:869 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
56:32:870 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1233 N[Audio]: Closing thread.
56:34:362 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
56:34:362 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1233 N[Audio]: Closing thread.
56:34:362 audiocommon\audiocommon.cpp:73 I[Audio]: Shutting down sound stream
56:34:362 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
56:34:362 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1192 N[Audio]: No thread present.
56:34:362 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
56:34:362 c:\buildbot\release-win-x64\build\externals\cubeb\src\cubeb_wasapi.cpp:1192 N[Audio]: No thread present.
56:34:364 audiocommon\audiocommon.cpp:81 I[Audio]: Done shutting down sound stream

Also available in: Atom PDF