Project

General

Profile

Actions

Emulator Issues #6141

closed

1080 Avalanche sound runs at half speed but game runs at full speed

Added by scientificraver about 11 years ago.

Status:
Invalid
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?
1080 Avalanche

Game ID?
GTEE01

What went wrong?
Sound is heavily crackling and runs in slow motion

What did you expect to happen?
Sound running fine like in 3.5-420

What steps will reproduce the problem?
Start the race.

What version of Dolphin were you using?
3.5-1062

64 or 32 bit Dolphin?
64

What version of Dolphin used to work?
3.5-420, needs more testing to find the exact revision where the problem occurred first

What Operating System were you using and what are your hardware
specifications?
Win7 x64

Any other relevant information or links to logs:
HLE audio, default audio settings, Framelimit: auto

Actions #1

Updated by MayImilae about 11 years ago

If it needs more testing, why don't you do it? That would be the fastest way to get it fixed.

Actions #2

Updated by scientificraver about 11 years ago

Of course I will test more revisions. But this will take some time and could need some help by others interested in getting this fixed. I guess it is caused by one one of the larger merges but we will see. As the problem is really strange and games like Mario Sunshine run fine, I wonder if other games are affected as well.

Actions #3

Updated by kostamarino about 11 years ago

  • Status changed from New to Questionable

Using the latest build sound definitely doesn't run at half speed compared to the game here, i can't reproduce it. Use the latest and default settings. As for crackling it is normal if you can't run the game full speed all the time, if it runs constant full speed and crackles then it is an issue.

Actions #4

Updated by scientificraver about 11 years ago

The game runs at perfectly stable 60FPS and has nearly no audio issues in 3.5-420.
Using 3.5-1090 the Game still runs at stable 60FPS but audio sounds extremely slow and distorted and is heavily crackling. I'm very busy at the moment but I will definitely try to find the revision causing this at a later date.

(This is OT:) And I disagree, crackling audio due to slow frame rates is an issue by definition, as it worked perfectly fine with the old asynchronous HLE. Therefore Dolphin needs a new asynchronous audio back end. Even if a game runs at an average of 59,999 FPS now it will occasionally crackle which is not acceptable. This is why LLE and both HLE are inferior to old HLE since both it will crackle even on high end systems. Only the old HLE has 100% crackle-free audio. For further reference, see issue 6075 . Once the new HLE gets into a stable build, you will be flooded with bug reports regarding this topic as the majority of users is affected. However, this OT section has nothing to do with the issue report.

Actions #5

Updated by scientificraver about 11 years ago

Has the audio timestretch code been merged already? Audio really runs at half the speed and sounds more like ambient in 3.5-1090 while it should and does sound like hard rock in 3.5-420. Like some kind of audio time stretch that tries to scale down the audio from 120 FPS to 60 FPS. (I have a 120hz screen.)

Actions #6

Updated by scientificraver about 11 years ago

Changing the display refresh rate to 60HZ or playing around with frame limiter settings didn't change anything. With all options other than Framelimit = Off the audio on the title screen was running slow. Even with game running at 100FPS, the audio was still too slow. With Framelimit = Off the audio got insanely fast. There is no way to get the audio running at normal speed, like in 3.5-420.

LLE audio is also affected. It runs normal in 3.5-420 60 FPS and half speed in 3.5-1090 60 FPS. (You need to compare the music on the title screen).

Actions #7

Updated by kostamarino about 11 years ago

Ok i tried again to find which setting might be responsible with hle, with direct sound i managed to get more severe crackling that i don't get with xaudio, but still there was no half speed(like slow motion)sound. The game runs at 60 fps and 60fps normally btw, why does it run at 120 fps for you?

Actions #8

Updated by delroth about 11 years ago

Have you enabled the accurate vbeam emulation setting?

Actions #9

Updated by scientificraver about 11 years ago

All settings are default. Forcing Accurate Vbeam On or Off doesn't change anything. With Framelimit = Auto, the game runs at 60FPS. Only with higher settings the FPS gets higher too. The crackling is not the core of the problem since the slow sound is causing it. Both HLE and LLE are equally affected, both were perfectly fine in 3.5-420.

I will likely not have any Internet or PC access the next days but I try to track down the exact revision later.

And did I mention that Dolphin sometimes crashes when pressing Escape after the error occurred?

Actions #10

Updated by kostamarino about 11 years ago

Ok i managed to replicate it and find the culprit too, my bad, i was using 1086 and it run fine, then upgraded to 1091 and it has the issue. I am removing the questionable and i guess it is the fifo commit revision e38e48923dcf, i will try to confirm it...

Actions #11

Updated by kostamarino about 11 years ago

  • Status changed from Questionable to New

Yeap, revision e38e48923dcf seems responsible, the previous one doesn't have the issue.

Actions #12

Updated by Sonicadvance1 about 11 years ago

So a issue that was created four days ago is affected by a commit that was made four /hours/ ago? I didn't know scientificraver was a time traveler.

Actions #13

Updated by kostamarino about 11 years ago

It was removed for a few commits and then it was readded to fix a different issue. So the commit i tested didn't have it.

Actions #14

Updated by kostamarino about 11 years ago

Btw scientific raver does limiting based to sound fix this issue to you? It reminds me of a previous issue with the fifo bp branch.

Actions #15

Updated by scientificraver about 11 years ago

No, limiting FPS to audio does not fix it.

Actions #16

Updated by kostamarino about 11 years ago

Hmm, limiting to audio outputs the actual frames the sound is running, in this case 50-53 instead of 60 and therefore the big crackling. Doesn't fix it though, just confirms that audio runs slower than it should be...

Actions #17

Updated by skidau about 11 years ago

The music track on the "Press Start" screen sounds the same to me in 3.5-401, 3.5-424, 3.5-1089 and 3.5-1099. The framerate is 60/60.

I am using OpenAL. Tried both DX9 and OGL.

Have you got a good dump of the game? Can you check the md5 against redump.org? The title screen uses audio streaming dtk which will break if the dump is no good. Older versions of Dolphin were more tolerant to bad images, but as Dolphin gets more accurate and hacks are removed, some bad images can break.

Actions #18

Updated by kostamarino about 11 years ago

Skid, i got the issue ingame personally, just press start to start a race, it will start to crackle a lot and i could notice a small sound delay, that was made more apparent when i limited based to audio, same crackling and audio speed compared to auto with about 50fps instead of 60 shown.

Actions #19

Updated by skidau about 11 years ago

I'm not hearing any problem with the music in game either. Since this game uses audio streaming, the OpenAL backend must be used as it is the only backend with accurate timing (as of 3.5-1100).

Actions #20

Updated by kostamarino about 11 years ago

I tried again the latest version, it is again fixed and i got myself a testing headache, lol... Scientificraver, try the latest dolphin version to see if it is fixed for you too and to close this issue before it rises from the dead....

Actions #21

Updated by scientificraver about 11 years ago

Problem is still there in build 3.5-1124 (Xaudio2). Normally I'm not using OpenAL because it is slow and heavily crackling on my system, has a very high delay and I absolutely dislike the distorted audio stretching. But I will try to reinstall it (new system installation) and check again. As far as I remember, in order to use OpenAL some dll files had to be placed somewhere in the Dolphin folder?

Since it is perfectly working in 3.5-420 (Xaudio2), switching to OpenAL would be a workaround and not a solution. I might have used the shrink function on the dump to save disk space, so I will try to redump the game. Why not just fix the Xaudio2 back end, which is used by most users?

Actions #22

Updated by scientificraver about 11 years ago

OpenAL also sounds slow (build 3.5-1124), next I will try to redump the image.

Actions #23

Updated by Sonicadvance1 about 11 years ago

I'd recommend grabbing 3.5-1156 since it merged in some AX changes and may change your results.

Actions #24

Updated by scientificraver about 11 years ago

But if kostamar was able to reproduce the error with a good dump before, I maybe can save that time. Nearly all my dumps are currently trimmed / shrunken to save huge amounts of disk space.

Actions #25

Updated by scientificraver about 11 years ago

Oh, I just wanted to avoid the new HLE as long as possible. The new synchronous audio does break all my Wii games and therefore I cannot continue to use current revisions of dolphin unless a new asynchronous audio is available. I cannot play any Wii game with stable 60FPS but I almost completed Xenoblade and Zelda SS in 1080p, which will be no longer possible with the new HLE in place.

3.5-1156 does not fix the problem.

Actions #26

Updated by skidau about 11 years ago

  • Status changed from New to Invalid

kosta cannot reproduce the problem anymore and I have never been able to. Since you're not using a good dump and shrunk games definitely do break audio streaming games like 1080 Avalanche, the disc image you are using is almost certainly the cause of the problem.

Actions #27

Updated by scientificraver about 11 years ago

I seem to have the same problem with Zelda: SS Eldin Volcano Area. In my opinion this a Dolphin issue since it worked fine with older revisions and shrinking / trimming should leave all valid audio data 100% intact. So there would be no need to break these games with the new code.

Actions #28

Updated by nintendonerd1889 over 10 years ago

Bump. Issue happens in 3.5-2371. Audio is choppy regardless of API used. My computer more than meets the requirements so speed is not an issue. Dump might have gotten corrupted when making, will try to make a clean one.

Core i5 3570 ivy bridge
MSI GeForce GTX 660
8 GB DDR3 SDRAM

So yeah, my PC is plenty fast. Not sure why the audio is so horrible on this game.

Actions

Also available in: Atom PDF