57 |
|
|
58 |
|
|
59 |
|
// Prototypes |
60 |
< |
static __saveds __regargs ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/); |
60 |
> |
static __saveds __attribute__((regparm(3))) ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/); |
61 |
|
|
62 |
|
|
63 |
|
/* |
174 |
|
* AHI sound callback, request next buffer |
175 |
|
*/ |
176 |
|
|
177 |
< |
static __saveds __regargs ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/) |
177 |
> |
static __saveds __attribute__((regparm(3))) ULONG audio_callback(struct Hook *hook /*a0*/, struct AHISoundMessage *msg /*a1*/, struct AHIAudioCtrl *ahi_ctrl /*a2*/) |
178 |
|
{ |
179 |
|
play_buf ^= 1; |
180 |
|
|
279 |
|
return 0x01000100; |
280 |
|
} |
281 |
|
|
282 |
< |
bool audio_get_dac_mute(void) |
282 |
> |
bool audio_get_speaker_mute(void) |
283 |
|
{ |
284 |
|
return false; |
285 |
|
} |
286 |
|
|
287 |
< |
uint32 audio_get_dac_volume(void) |
287 |
> |
uint32 audio_get_speaker_volume(void) |
288 |
|
{ |
289 |
|
return 0x01000100; |
290 |
|
} |
297 |
|
{ |
298 |
|
} |
299 |
|
|
300 |
< |
void audio_set_dac_mute(bool mute) |
300 |
> |
void audio_set_speaker_mute(bool mute) |
301 |
|
{ |
302 |
|
} |
303 |
|
|
304 |
< |
void audio_set_dac_volume(uint32 vol) |
304 |
> |
void audio_set_speaker_volume(uint32 vol) |
305 |
|
{ |
306 |
|
} |