--- uae/src/sd-sgi/sound.c 2018/04/24 16:45:20 1.1.1.1 +++ uae/src/sd-sgi/sound.c 2018/04/24 16:58:58 1.1.1.2 @@ -12,6 +12,7 @@ #include "config.h" #include "options.h" #include "memory.h" +#include "events.h" #include "custom.h" #include "audio.h" #include "gensound.h" @@ -112,7 +113,8 @@ int init_sound(void) return 0; } - sample_evtime = (long)maxhpos * maxvpos * 50 / rate; + scaled_sample_evtime = (unsigned long)maxhpos * maxvpos * vblank_hz * CYCLE_UNIT / rate; + scaled_sample_evtime_ok = 1; sndbufpt = sndbuffer; if (width == AL_SAMPLE_16) {