Project

General

Profile

Actions

Emulator Issues #6067

closed

Audio crackling after 1 hour running Dolphin-3.5-488-x64 with DSP=LLE compiler

Added by james.jdunne about 11 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

Do not attach files to this issue. Upload them to another site and
link here. Use imgur.com for images.

Have you searched the issue tracker for a similar issue?
Yes

Game Name?
New Super Mario Bros Wii

Game ID?

What went wrong?
Audio starts seriously crackling after 1 hour of continuous usage of Dolphin.

What did you expect to happen?
Audio playback should not crackle depending on length of play.

What steps will reproduce the problem?
Load NSMBW and play for a little over 1 hour.

What version of Dolphin were you using?
3.5-488-x64

64 or 32 bit Dolphin?
x64

What version of Dolphin used to work?
N/A

What Operating System were you using and what are your hardware
specifications?
Windows 7 x64
Intel Core i5-2500K

64 or 32 bit Operating system?
x64

Any other relevant information or links to logs:

Actions #1

Updated by skidau about 11 years ago

Does disabling the frame limiter make the crackling occur sooner?
Does the crackling still occur if you make a save state, exit Dolphin and reload the save state?
Does this occur on all audio backends?

Actions #2

Updated by scientificraver about 11 years ago

This happens in NSMB Wii HLE and other Games like DKCR as well, see issue 5938. Something seems to be severely broken on the audio side. All 3.0 revisions and 3.5 stable run fine.

Actions #3

Updated by scientificraver about 11 years ago

Disabling the frame limiter does not make the crackling occur sooner. In my experience the crackling is more likely to occur after scenes that run slow, but I'm not 100% sure. Since it take a lot of time, the bug is very hard to reproduce in NSMB Wii.

However, in DKCR the cracking (HLE) sometimes occurs just after 5-10 minutes of gameplay.

I will try to answer Questions 2 and 3 using DKCR, but testing will take some time.

Actions #4

Updated by JMC4789 about 11 years ago

Can confirm this also happens in the Mario Superstar Baseball in HLE Audio on all backends. I have not tested LLE thoroughly enough.

Making a Savestate and reloading fixes the problem.

Actions #5

Updated by flame_uk about 11 years ago

I have this issue in all games after a period of time (60mins+), reproduced with wii sports, wii sports resort, SMG, NSMB.

It occurred on all three backends on both HLE and LLE although I do more testing with LLE because I use that pretty much 100% of the time.

Actions #6

Updated by haddockd1 about 11 years ago

This issue does indeed occur in 3.5 and 3.0. See this thread for details:
http://forums.dolphin-emu.org/Thread-audio-glitch

Actions #7

Updated by scientificraver about 11 years ago

After playing games like Zelda SS, SMG, Xenoblade and others for more than 200 hours with revisions between 3.0-424 and 3.0-750, I can be sure that the random noise did not occur in these revisions with HLE audio, at least not on my PC.

Actions #8

Updated by awelker about 11 years ago

Dear all I've never heard any sound in any Dolphin version with out of the Wii Remote controlers or didn't you mean this?, not with HLE sounds, not with LLE ok but only lagging and hearing crackling noices.

Neither on AMD System Phenom II X4 955 with Gtx 560Ti nor with i5-3570k HD4000
Hope you can help me.

Actions #9

Updated by JMC4789 about 11 years ago

It's not about the Wii remote controllers, it's about a strange glitch in the audio back-end. Eventually, certain sounds (at least in my games) tend to get doubled or start crackling after playing a game for so long.

If you want Wii-Remote sound, you have to use LLE Audio(aside from some random sounds that do play in HLE), but due stuff about PCs, the audio on them tends to lag a bit. I don't know if there's a solution to that.

Actions #10

Updated by awelker about 11 years ago

Thank you very much.

Actions #11

Updated by delroth about 11 years ago

Could someone time the exact number of seconds before the crackling starts to occur and check if it's always the same?

Actions #12

Updated by JMC4789 about 11 years ago

It's not always the same Delroth; it can happen within a half hour, and sometimes take 3+ hours. (The game's I've seen it in have all used AX-HLE)

Actions #13

Updated by haddockd1 about 11 years ago

I can attest to that. I will say that on my machine, music with bass tend to make the crackling come and go the fastest (not sure if it is relevant though).

Actions #14

Updated by davidthemaster203 about 11 years ago

I've had the issue with Rune Factory Frontier (with HLE and LLE).
I haven't tested with the stable builds though.

It's the only game I've tried but I've found that the crackling will stop after a few minutes of gameplay (never the same amount of time before it stops, but it's less than the time it takes for the crackling to begin).

Actions #15

Updated by james.jdunne about 11 years ago

Based on haddockd1's comment on more bassy music, it sounds like it is a build-up of DC offset. In other words, the generated waveform signal is not always zeroed and eventually drifts away from zero somehow, either positively or negatively. You end up with clipping when the peaks of the signal pass by where they would normally be within range of the allowable bit depth, or perhaps the signal is flipping over from negative to positive (or vice versa) due to integer sign change causing major clipping artifacts.

Actions #16

Updated by james.jdunne about 11 years ago

I would venture to say that the issue is not localized to either HLE or LLE but is in code that deals with the audio pipeline after signal emulation occurs but before it is delivered to the audio driver.

Actions #17

Updated by haddockd1 about 11 years ago

The Audio glitch thread has had numerous folks confirm this issue on HLE and LLE, all backends.

Actions #18

Updated by skidau about 11 years ago

  • Status changed from New to Fixed

This issue was closed by revision 51290fd48221.

Actions #19

Updated by jman36x almost 11 years ago

I have had this issue occur on the latest build x64 3.5-1387 for the game:
Dokapon Kingdom. Should I write a new issue?

Actions #20

Updated by skidau almost 11 years ago

  • Status changed from Fixed to New

We'll just re-open this issue.

Guessing that an incrementing counter in the DSP/AI is overflowing after 1.5 hours of continuous play.

Actions #21

Updated by rachelbryk almost 11 years ago

  • Status changed from New to Fixed
Actions #22

Updated by madpluck almost 11 years ago

Why is this marked as "fixed" now? I am still experiencing this bug for sure.

Actions #23

Updated by degasus almost 11 years ago

because it was fixed in a1822a3acaf112dd37ed98818acdc0bc5014caba for lle and new-ax-hle

Actions #24

Updated by MayImilae almost 11 years ago

It was marked as fixed because it was thoroughly reviewed and fixed by ra1822a3acaf1 (3.5-1591) and a few tweaks up to r32579a08dd74 (3.5-1595). It has been thoroughly tested by tons of people, it's fixed. Update to that or newer and you will not experience the problem anymore.

Actions

Also available in: Atom PDF