PDA

View Full Version : Older UAEs: Turrican II diamond collect sound wrong


john4p
09 September 2010, 09:09
In older versions of UAE (0.8.xx) and WinUAE the sample for collecting diamonds isn't correctly played.

It's just a short "ding!"-sound instead of the nice full sample we know from real Amigas and more recent versions of WinUAE.

@Toni Wilen: Do you still remember with which WinUAE version you fixed this? Did it just work after a major rewrite of the audio-emulation part? Or is there a simple fix one could apply to the old source to make this sample be fully played?

rare_j
09 September 2010, 12:19
Set sound emulation to exact (slowest) if it is available in your version. This fixes it in winuae as old as 0.8.27 at least.

john4p
09 September 2010, 12:43
Although it's not available in my version it's a clue where to look. Thanks.

john4p
09 September 2010, 14:03
Okay, just commented these lines out (in audio.cpp):

static __inline__ void audio_handler (int nr):
//else if (cdp->dat < maxhpos * CYCLE_UNIT / 2)
// (cdp+1)->per = maxhpos * CYCLE_UNIT / 2;

void AUDxPER(int nr, uae_u16 v):
//if (per < maxhpos * CYCLE_UNIT / 2)
// per = maxhpos * CYCLE_UNIT / 2;

Now the diamonds sound like they're supposed to in UAE4All. Also other sfx sound more clean.

</thread>

Toni Wilen
09 September 2010, 15:34
I think I have rewritten it at least twice :)

john4p
09 September 2010, 20:40
Glad this simple fix already worked - because the rewritten audio emulation sources would need a lot more effort to get them working with UAE4All.

Of course the newer sources are even more accurate - but the old audio-emulation is good enough.

rare_j
09 September 2010, 22:26
Simple fix may not be that simple, on Winuae.8.27 if you enable sound emulation 'Enabled 100% Accurate' then it fixes diamonds in Turrican II, but the Chaos Engine (and some other games) will not load. Sound emulation has to be switched back to 'Enabled' for those games.

john4p
10 September 2010, 07:35
Okay - thanks a lot for the info. I'll let the "speedy sound" as an option in then, too.