--- uae/src/sd-af/sound.c 2018/04/24 16:40:30 1.1.1.1 +++ uae/src/sd-af/sound.c 2018/04/24 17:04:44 1.1.1.3 @@ -16,7 +16,6 @@ #include "audio.h" #include "gensound.h" #include "sounddep/sound.h" -#include "events.h" AFAudioConn *aud; AC ac; @@ -62,9 +61,9 @@ int init_sound (void) aftime = AFGetTime(ac); init_sound_table16 (); - eventtab[ev_sample].handler = sample16_handler; - sample_evtime = (long)maxhpos * maxvpos * 50 / rate; - + sample_handler = sample16_handler; + sample_evtime = (long)MAXHPOS_PAL * MAXVPOS_PAL * VBLANK_HZ_PAL / rate; + sndbufpt = sndbuffer; sound_available = 1; printf ("Sound driver found and configured for %d bits at %d Hz, buffer is %d bytes\n", 16, rate, sndbufsize);