Player icon indicating copy to clipboard operation
Player copied to clipboard

BGM FadeIn and FadeOut crackle

Open Lt-knb opened this issue 7 months ago • 3 comments

Now that panning and Volume are correct, here's another sound issue I found weeks ago: In RPG_RT, the "curve" of FadeIn and FadeOut has visible stepping, but it's inaudible. In EasyRPG, it's audible. Yume Nikki is affected in at least 32 maps.

For the following test, I used a Stereo 44.1 kHz version of "1000hz_PCM.wav" I made myself from scratch, in the Music Playing area in Test Game 2000. Top is RPG_RT, bottom is EasyRPG: Image As you can see, a single step makes a pop sound in EasyRPG. The crackling is these pops stacking up.

With the default Mono 16 kHz wav, the Right channel keeps crackling after FadeIn is done. Even if you just Play BGM without FadeIn, the Right channel still crackles as if it's fading. I made a Mono version of my wav, and it does that, so it's a Mono issue: Image

Apparently, RPG_RT applies these "mini-fades", only lasting 5 ms, to prevent the pops: Image So implementing those should fix them.

No idea why there would be the same crackling on the Right channel when a sound file is Mono though. That's just weird.

The mini-fades are also applied when panning and Volume change mid-playback. In EasyRPG, you hear individual pops.

Here's my 1000hz_PCM and the Mono version: 1000hz_PCM 44.1 kHz.zip

Lt-knb avatar Jun 22 '25 05:06 Lt-knb