Page 1 of 1

Sound playing too fast in EMC levels

Posted: Fri Apr 04, 2025 4:44 pm
by dazel
Hello,
When playing Emerald Mine Club level set, "continual" sound, such as active magic wall and wheel, moving bugs and tanks, play too fast.
The problem occurs on two computers, both running Windows 11 and latest version of R&D. It also occurs on version 4.0.1.0.
(If I need to test on an specific older version, please tell me where to download it.)

I took two audio recordings (from Emerald Mine, level 16), one through Rocks'n'Diamonds, the other through the emulator:
https://filebin.net/q5n2vwndoebjd7ly

Re: Sound playing too fast in EMC levels

Posted: Sat Apr 05, 2025 10:24 am
by Holger
Hi dazel, welcome to the R'n'D forum! :-)

I never noticed this problem so far! But it seems very likely to me that something like that could well be possible, because all those sounds in Emerald Mine have completely different sampling rates in the original game, which always seemed a bit crazy to me (although the Amiga sound chip perfectly supports using a unique sampling rate for each of its four audio channels, of course). So my Emerald Mine sound conversion script indeed has hard-coded sampling rates to be used when converting all sounds for use in R'n'D. I am not sure at the moment how I determined these original sampling rates, but it may be possible that some of them have been guessed by listening to the converted result, and may therefore be wrong.

I will have a closer look (well, listening, I mean :) ) to the two MP3 files you provided, and check what might go wrong here.

BTW, the problem should occur with all versions of R'n'D if you use the same EMC level collection, as the game does not adjust the sampling frequency anymore after loading the sounds.

Re: Sound playing too fast in EMC levels

Posted: Sat Apr 05, 2025 4:39 pm
by Holger
OK, I've checked it, and I can conform it.

It is in fact not caused by a different sampling rate, but by playing those samples in loop mode, while they should instead be played only once, but at every EM game engine "cycle" (which is the game engine frame where the action occurs, while all other frames are just "waiting" (and playing animations)).

This problem can be fixed by disabling loop mode for all affected sounds (which are at least the sounds for yamyam, magic wall and robot wheel) in the sound configuration file for the EMC sound sets. I will correct this and release a new, updated EMC collection package.

Thanks a lot for reporting this issue! :)