--- uae/src/sd-sgi/sound.h 2018/04/24 16:45:20 1.1 +++ uae/src/sd-sgi/sound.h 2018/04/24 17:17:12 1.1.1.3 @@ -1,8 +1,8 @@ - /* + /* * UAE - The Un*x Amiga Emulator - * + * * Support for the Silicon Graphics Audio Library (AL) - * + * * Copyright 1998 Ari Heikkinen */ @@ -14,13 +14,15 @@ extern int sndblocksize; extern ALport al_port; extern int to_frames_divisor; -static __inline__ void check_sound_buffers(void) +STATIC_INLINE int check_sound_buffers(void) { int bytes = (char *)sndbufpt - (char *)sndbuffer; if (bytes >= sndblocksize) { alWriteFrames(al_port, sndbuffer, bytes / to_frames_divisor); sndbufpt = sndbuffer; + return 1; } + return 0; } #define PUT_SOUND_BYTE(b) ( *(uae_u8 *)sndbufpt++ = (b) )