--- BasiliskII/src/AmigaOS/audio_amiga.cpp 1999/10/20 15:13:55 1.3 +++ BasiliskII/src/AmigaOS/audio_amiga.cpp 1999/10/21 22:39:56 1.4 @@ -57,7 +57,11 @@ static int audio_block_fetched = 0; / // Prototypes +#ifdef __GNUC__ +static __saveds __attribute__((regparm(3))) ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/); +#else static __saveds __regargs ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/); +#endif /* @@ -174,7 +178,11 @@ void audio_exit_stream() * AHI sound callback, request next buffer */ +#ifdef __GNUC__ +static __saveds __attribute__((regparm(3))) ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/) +#else static __saveds __regargs ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/) +#endif { play_buf ^= 1;