--- BasiliskII/src/AmigaOS/audio_amiga.cpp 1999/10/20 15:13:55 1.3 +++ BasiliskII/src/AmigaOS/audio_amiga.cpp 2001/02/02 20:52:57 1.8 @@ -1,7 +1,7 @@ /* * audio_amiga.cpp - Audio support, AmigaOS implementation using AHI * - * Basilisk II (C) 1997-1999 Christian Bauer + * Basilisk II (C) 1997-2001 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -57,7 +57,7 @@ static int audio_block_fetched = 0; / // Prototypes -static __saveds __regargs ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/); +static __saveds __attribute__((regparm(3))) ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/); /* @@ -174,7 +174,7 @@ void audio_exit_stream() * AHI sound callback, request next buffer */ -static __saveds __regargs ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/) +static __saveds __attribute__((regparm(3))) ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/) { play_buf ^= 1; @@ -192,7 +192,7 @@ static __saveds __regargs ULONG audio_ca // Put data into AHI buffer (convert 8-bit data unsigned->signed) if (AudioStatus.sample_size == 16) - memcpy(sample[play_buf].ahisi_Address, Mac2HostAddr(ReadMacInt32(apple_stream_info + scd_buffer)), work_size); + Mac2Host_memcpy(sample[play_buf].ahisi_Address, ReadMacInt32(apple_stream_info + scd_buffer), work_size); else { uint32 *p = (uint32 *)Mac2HostAddr(ReadMacInt32(apple_stream_info + scd_buffer)); uint32 *q = (uint32 *)sample[play_buf].ahisi_Address;