You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2020-08-29 16:36:31

Franpa
Member
Registered: 2009-03-16
Posts: 60
Website

Audio crackles

I've... got the same issue as this guy https://forums.desmume.org/viewtopic.ph … 460#p26460

The only solution seems to be the 3rd audio synch method but that causes an absurd amount of audio delay. I'm using a 60Hz display & the Dynamic Recompiler set to 12 while playing Castlevania Order of Ecclesia.

I'm unsure what measurement the Audio Buffer setting is displayed in, samples? milliseconds? For most programs around 30-40ms resolves crackle but I dunno how to try that.

I downloaded the latest stable Artifact linked to on the downloads page.

Last edited by Franpa (2020-08-30 14:38:53)


Computer specifications:
Windows 10 x64 | Ryzen 3700X | ASUS Crosshair Hero VIII (WiFI) Motherboard | 16GB 3600MHz RAM | Nvidia Geforce 1070Ti

Offline

#2 2020-08-30 01:03:47

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,169

Re: Audio crackles

it's measured in samples. 5880 / 44100 * 1000 = 133ms
Try the xaudio sound core.
castlevania uses sequenced audio. You should be using dual spu. The synch methods are for streams.
There aren't that many options in this dialog. You really haven't tried them all yet?

Offline

#3 2020-08-30 08:43:41

Franpa
Member
Registered: 2009-03-16
Posts: 60
Website

Re: Audio crackles

You're right, I didn't try Dual SPU mode (I did try everything else though). The description underneath it seems to imply it's to be used as a last resort as it isn't as accurate and can cause sounds to be clipped. I just now tried it though and it also has crackle in addition to a delayed duplication of sound effects resulting in a sort of echo/audio doubling.

Well, now that I know 5880 = 133ms and the formula to convert to milliseconds, I can use the P synch Synchronous method without excessive audio delay by setting it to 1000 samples (P Synch is the only configuration that doesn't crackle). Thanks.

Last edited by Franpa (2020-08-30 08:45:55)


Computer specifications:
Windows 10 x64 | Ryzen 3700X | ASUS Crosshair Hero VIII (WiFI) Motherboard | 16GB 3600MHz RAM | Nvidia Geforce 1070Ti

Offline

#4 2020-08-30 09:39:20

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,169

Re: Audio crackles

your system is weird, man. you might want to investigate getting a new sound card. also try turning your power options to max performance

Offline

#5 2020-08-30 10:40:30

Franpa
Member
Registered: 2009-03-16
Posts: 60
Website

Re: Audio crackles

I'm using integrated audio and I already go out of my way to turn off CPU, GPU, RAM, HDD/SSD, motherboard and PCI-E power saving features to achieve the most consistent experience. Annoying that companies keep adding more and more power saving junk as time goes by...

Last edited by Franpa (2020-08-30 10:44:48)


Computer specifications:
Windows 10 x64 | Ryzen 3700X | ASUS Crosshair Hero VIII (WiFI) Motherboard | 16GB 3600MHz RAM | Nvidia Geforce 1070Ti

Offline

#6 2020-08-30 13:36:38

Franpa
Member
Registered: 2009-03-16
Posts: 60
Website

Re: Audio crackles

Wait... I think I found the issue with the excessively abhorrent crackle when using Dual SPU and less severe crackle when using the various Synchronous modes. The games Surround Sound option! Toggling it immediately stops/starts the crackling, and turning it off fixes the sound doubling/echo issue when using Dual SPU.

Last edited by Franpa (2020-08-30 13:36:57)


Computer specifications:
Windows 10 x64 | Ryzen 3700X | ASUS Crosshair Hero VIII (WiFI) Motherboard | 16GB 3600MHz RAM | Nvidia Geforce 1070Ti

Offline

#7 2020-08-31 03:04:11

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,169

Re: Audio crackles

surround sound probably creates a synchronous audio stream. Does that default to ON????

Offline

#8 2020-08-31 04:55:38

Franpa
Member
Registered: 2009-03-16
Posts: 60
Website

Re: Audio crackles

It does not default to On in the game.


Computer specifications:
Windows 10 x64 | Ryzen 3700X | ASUS Crosshair Hero VIII (WiFI) Motherboard | 16GB 3600MHz RAM | Nvidia Geforce 1070Ti

Offline

#9 2020-08-31 05:54:03

Franpa
Member
Registered: 2009-03-16
Posts: 60
Website

Re: Audio crackles

So to summarize the audio situation with Castlevania: Order of Ecclesia, Save Room hum exemplifies this analysis:

Surround Enabled in-game, Direct Sound, 5880 buffer
Dual SPU = severe audio crackle and audio duplication/echo, like 2 audio streams are slightly offset from each other.
Synchronous N = Audio crackle, audio rapidly warbles in and out of synch with frequency increasing as Audio Buffer is lowered.
Synchronous Z = Audio crackle. Pitch shifts can occur, especially at low Audio Buffer values.
Synchronous P = Audio crackle, latency is affected by Audio Buffer size.

Surround Disabled in-game, Direct Sound, 5880 buffer
Dual SPU = severe audio crackle and audio duplication/echo, like 2 audio streams are slightly offset from each other.
Synchronous N = Sounds fine.
Synchronous Z = Sounds fine. Pitch shifts can occur, especially at low Audio Buffer values.
Synchronous P = Sounds fine, latency is affected by Audio Buffer size.

Surround Enabled in-game, XAudio2, 1400 & 5880 buffer
Dual SPU = severe audio crackle and audio duplication/echo, like 2 audio streams are consistently slightly offset from each other.
Synchronous N = Audio crackle. Can take 15 minutes after launching the ROM to become noticeable if buffer is 5880.
Synchronous Z = Audio crackle, seems identical to N.
Synchronous P = Audio crackle, seems identical to N. Latency is affected by audio buffer size.

Surround disabled in-game, XAudio2, 1400 buffer
Dual SPU = Sound effects occasionally sound garbled. Rapidly alternate between weapons to hear it.
Synchronous N = Sounds fine.
Synchronous Z = Sounds fine.
Synchronous P = Sounds fine. Latency is affected by audio buffer size

So... the games Surround Sound functionality isn't handled well regardless of settings (especially when it comes to Dual SPU) and XAudio2 is the clear winner when it comes to latency/Audio Buffer size.


Computer specifications:
Windows 10 x64 | Ryzen 3700X | ASUS Crosshair Hero VIII (WiFI) Motherboard | 16GB 3600MHz RAM | Nvidia Geforce 1070Ti

Offline

#10 2020-08-31 10:16:31

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,169

Re: Audio crackles

Surround sound isn't expected to work on dual spu.
Nobody really needs your summary of the settings that work on your computer. The settings exist because every computer is different and preferences for idiosyncracies vary.
I see no reason why the hum in the save room would malfunction. There is nothing special about that sound. Indeed, it sounds fine on my system. If your system can't play that sound, then it can't play anything. I'm sorry your system is wrecked. Any problem with the motherboard or USB or sound or video could cause hiccups internally that would destroy all buffering. Make sure your sound card is set to use 16bit 44100khz output, else it may be internally using some poor broken choices for resampling.
You need to accept that your system is broken.
In consideration of your many years of service using desmume, I may add another sound output driver for you, but if that doesn't work then it won't matter to me.

Offline

#11 2020-08-31 12:52:16

Franpa
Member
Registered: 2009-03-16
Posts: 60
Website

Re: Audio crackles

It's not exclusively the save room hum that's problematic, I was just using that as an example because it is a constant sound to experiment with. In any case I found that leaving 3D sound off in the game is the only way to get both XAudio and Direct Sound to work well with that game.

My soundcard is set to 32bit, 192KHz >.>" and if the issue was as bad as you mistakenly seem to think it is it'd surely affect more programs.

Last edited by Franpa (2020-08-31 12:55:09)


Computer specifications:
Windows 10 x64 | Ryzen 3700X | ASUS Crosshair Hero VIII (WiFI) Motherboard | 16GB 3600MHz RAM | Nvidia Geforce 1070Ti

Offline

#12 2020-08-31 21:14:32

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,169

Re: Audio crackles

Don't be so sure.
Don't use such weird settings.

Offline

Board footer

Powered by FluxBB