--- uae/src/sd-file/sound.c 2018/04/24 16:42:45 1.1.1.2 +++ uae/src/sd-file/sound.c 2018/04/24 17:17:20 1.1.1.4 @@ -1,15 +1,14 @@ - /* + /* * UAE - The Un*x Amiga Emulator - * + * * Support for Linux/USS sound - * + * * Copyright 1997 Bernd Schmidt */ #include "sysconfig.h" #include "sysdeps.h" -#include "config.h" #include "options.h" #include "memory.h" #include "custom.h" @@ -43,10 +42,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; @@ -119,7 +118,7 @@ int init_sound (void) buf[t+3] = (v>>24) & 255; write (sound_fd, buf, 44); - sample_evtime = (long)maxhpos * maxvpos * 50 / currprefs.sound_freq; + obtained_freq = currprefs.sound_freq; if (currprefs.sound_bits == 16) { init_sound_table16 ();