--- uae/src/sd-file/sound.c 2018/04/24 16:40:30 1.1 +++ uae/src/sd-file/sound.c 2018/04/24 17:15:08 1.1.1.3 @@ -1,8 +1,8 @@ - /* + /* * UAE - The Un*x Amiga Emulator - * + * * Support for Linux/USS sound - * + * * Copyright 1997 Bernd Schmidt */ @@ -16,7 +16,6 @@ #include "audio.h" #include "gensound.h" #include "sounddep/sound.h" -#include "events.h" #include #include @@ -44,10 +43,10 @@ void close_sound(void) int t; uae_u32 v; char buf[4]; - + if (!have_sound) return; - + t = 0; v = sndbuf_written; buf[t] = v & 255; @@ -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;