--- uae/src/sd-file/sound.c 2018/04/24 16:40:30 1.1.1.1 +++ uae/src/sd-file/sound.c 2018/04/24 16:42:45 1.1.1.2 @@ -16,7 +16,6 @@ #include "audio.h" #include "gensound.h" #include "sounddep/sound.h" -#include "events.h" #include #include @@ -124,10 +123,10 @@ int init_sound (void) if (currprefs.sound_bits == 16) { init_sound_table16 (); - eventtab[ev_sample].handler = currprefs.stereo ? sample16s_handler : sample16_handler; + sample_handler = currprefs.stereo ? sample16s_handler : sample16_handler; } else { init_sound_table8 (); - eventtab[ev_sample].handler = currprefs.stereo ? sample8s_handler : sample8_handler; + sample_handler = currprefs.stereo ? sample8s_handler : sample8_handler; } sound_available = 1; sndbufsize = 44100;