Emulator Issues #8711
closedOpenAL backend on cards with hardware OpenAL - Error queuing buffers
0%
Description
Game Name?
All, tested most on Paper Mario: The Thousand-Year Door.
Game ID?
All, tested most on G8ME01.
What's the problem? Describe what went wrong in few words.
With OpenAL Soft everything works fine, but there is no sound when using Creative's OpenAL with a X-Fi Titanium.
With Dolby ProLogic II decoder the sound works, but with too much gain causing clipping. It is REALLY loud.
What did you expect to happen instead?
Sound plays, and the gain in normal when using DPLII.
What steps will reproduce the problem?
- Need a computer with hardware OpenAL (tested on X-Fi processor)
- Delete the OpenAL Soft from Dolphin folder
- Play any game
Dolphin 3.5 and 3.5-367 are old versions of Dolphin that have
known issues and bugs, so don't report issues about them and test the
latest Dolphin version first.
Which versions of Dolphin did you test on?
4.0-6848
Does using an older version of Dolphin solve your issue? If yes, which
versions of Dolphin used to work?
It worked on 3.5-1818 with some cracks on the sound (maybe the transition between buffers are not perfect). Tested on the x64 version released by skid called OpenAL-sane-defaults.
It can be downloaded from here:
https://forums.dolphin-emu.org/Thread-green-notice-development-thread-x-fi-owners-to-test-windows-openal-changes
What are your PC specifications? (including, but not limited to: Operating
System, CPU and GPU)
Windows 8.1 64-bit
Pentium G3220
Intel HD Graphics
4GB 1333MHz RAM
Is there any other relevant information? (e.g. logs, screenshots,
configuration files)
You can download a small sound sample here:
https://mega.co.nz/#!t89jRRiL!elb_0VyzF4_-a_dOqPt4-t-1c8biqV6d_sE7386KBU4 (CAUTION: REALLY loud)
There are three lines in the log file that shows why there is no sound without DPLII decoder:
00:20:402 OpenALStream.cpp:308 E[Audio]: Error queuing buffers: 0000a004
00:20:402 OpenALStream.cpp:308 E[Audio]: Error queuing buffers: 0000a004
00:20:402 OpenALStream.cpp:308 E[Audio]: Error queuing buffers: 0000a004
If I am not mistaken, that error is InvalidOperation and it does not show when DPLII decoder is active.
Files
Updated by LAGonauta over 9 years ago
- File Capturar.PNG Capturar.PNG added
I downloaded the source code and managed to figure out the problem.
The X-Fi hardware does not support Float Point 32-bit buffers, only 16-bit or 32-bit fixed point buffers, even though its drivers reports as having support.
On OpenALStream.cpp I disabled the code to use float point on line 279 and it worked perfectly when not decoding Dolby ProLogic II. A code to force fixed point if there is “X-Fi” in the renderer name should do the trick (I could do it, but I only have C# skills and my code is never pretty)
Maybe in reality the X-Fi expects Fixed Point 32-bit when set to AL_FORMAT_51CHN32, and this is why we can hear what is happening but it is too loud.
Updated by degasus over 9 years ago
I could do it, but I only have C# skills and my code is never pretty
Try it, we're trying to be very helpful on PRs :D
Updated by LAGonauta over 9 years ago
Thanks wickmarkus86 :)
This is my first time using Git, so I have no idea how some things work... But I made a patch. How do I generate a PR?
Stereo mode now works perfectly, but on surround mode there is still some clipping (but is usable now)... I have no idea why as I used the same code to convert float to short that is used on stereo. Maybe the DPL2 decoder increases the overall volume?
Updated by LAGonauta over 9 years ago
- File 0001-Added-X-Fi-check-and-now-Surround-FLOAT-is-converted.patch 0001-Added-X-Fi-check-and-now-Surround-FLOAT-is-converted.patch added
- File 0002-Changed-some-things.patch 0002-Changed-some-things.patch added
Oops, there was some leftovers from my experiment with INT32 and now those are proper patches :)
Updated by BhaaL over 9 years ago
You need a GitHub Account to create a Pull Request. Simply hit the "Fork" Button on our repository (which creates a copy in your own space), clone from there, make your changes (preferably on a branch, not directly on master), push them and then head over to the GitHub page. It will show the new changes and let you create a Pull Request straight to the Dolphin repo.
If you need more help on that, hit us up on irc.freenode.net in #dolphin-dev.
Updated by skidau almost 9 years ago
- Status changed from New to Fixed