Project

General

Profile

Actions

Emulator Issues #2651

closed

DSP HLE sound delayed by about 1 minute

Added by NicolasDelgado over 14 years ago.

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

What steps will reproduce the problem?
1.Open Dolphin (linux)
2.Start a Game
3.

What is the expected output? What do you see instead?
The sound is delayed about 1 minute with alsa.

What version of the product are you using? On what operating system?
R5426, Ubuntu 10.04, I dont know if it worked before. (sorry for my
english)

Please provide any additional information below.

here is the output of the terminal until the sound starts
http://paste.ubuntu.com/426812/

Actions #1

Updated by skidau over 14 years ago

Yeh, this is a known issue with DSP HLE. Can you try it with DSP LLE?

Actions #2

Updated by NicolasDelgado over 14 years ago

The emulator just closes, want the output?

Actions #3

Updated by Otoris0 over 14 years ago

I get the same issue with HLE but when I switch to LLE the game refuses to display or
start. Both bin/bios/whatever files are in Dump/DSP/

Using: R5394 - Obtained from playdeb.net
OS: Ubuntu 10.04 64-bit
GPU: GeForce GTX 275
CPU: i5 Quad Core, OC'd 3.9 GHz
RAM: 4gb DDR3

Actions #4

Updated by skidau over 14 years ago

Would you please try disabling the LLE JIT (configured within the LLE plugins options)?

Actions #5

Updated by NicolasDelgado over 14 years ago

the game does not start, here is the output http://paste.ubuntu.com/427291/ is a
little big

Actions #6

Updated by Anonymous over 14 years ago

15:45:956 Source/Core/Common/Src/MsgHandler.cpp:53 E[]: Warning: Failed to load DSP Rom :
sys/GC/dsp_rom.bin
15:45:957 Source/Core/Common/Src/MsgHandler.cpp:53 E[
]: Warning: Failed to load DSP Rom :
sys/GC/dsp_coef.bin

...we really should just make that error out completely.

Actions #7

Updated by NicolasDelgado over 14 years ago

D'oh

the same result as hle, the problem is with alsa, with AOSound works, but stutters
(cut, my english is bad xD)

Actions #8

Updated by NicolasDelgado over 14 years ago

It works a bit faster with AOSound.

Actions #9

Updated by pierre over 14 years ago

The problem with the delay is bad interaction with the alsa plugin sending sound to
pulseaudio. If i directly use the alsa hw devices, i don't have noticable delay.

Actions #10

Updated by skidau over 14 years ago

pierre, would you please submit a patch making pulseaudio optional?

Actions #11

Updated by Otoris0 over 14 years ago

So the issue with the sound lagging is because ubuntu natively uses pulseaudio? Is
there a way to set ubuntu to use ALSA or AOSound?

Actions #12

Updated by pierre over 14 years ago

I have no clue why this happens only with dolphin. Something is different in the
alsa-handling to the "regular" alsa users. I'll take a look. In the meantime, i think
the pulseaudio plugin must be setup for use in /etc/asound.conf. Disabling should
only involve commenting the blocks for the "default" devices, like this:

#pcm.!default {

type pulse

#}

#ctl.!default {

type pulse

#}

The "!default" may be just "default".
I don't have ubuntu around here, so i don't know exactly how it configures alsa to
use pulseaudio.

Actions #13

Updated by pierre over 14 years ago

Okay, figured it out: the pulseaudio plugin offers a "hardware" buffer of ~1 minutes
worth of samples, which needs to be filled before it can be sent off to the
pulseaudio daemon and then to the hardware. Should be fixed in r5439.

Actions #14

Updated by vadimurputi over 14 years ago

Please relook the fix, it creates stutters in games like RE4 & RE:UC. My OS is windows
7 x64.

Actions #15

Updated by pierre over 14 years ago

Ummm.. that code is not used on anything other than Linux, at least i'd be surprised
if someone had ported the Advanced Linux Sound Architecture to Windows. Anyways, on
Windows you may be better off using DirectSound.

Actions #16

Updated by NicolasDelgado over 14 years ago

thanks

Actions #17

Updated by skidau over 14 years ago

  • Status changed from New to Fixed
Actions

Also available in: Atom PDF