$NetBSD: patch-ac,v 1.4 2007/10/09 20:13:40 hubertf Exp $ --- audio_carbon.c.orig 2004-01-23 10:41:31.000000000 +0100 +++ audio_carbon.c @@ -94,7 +94,7 @@ void callback(SndChannelPtr channel, Snd } static -int wait(struct buffer *buffer) +int madplay_wait(struct buffer *buffer) { if (MPWaitOnSemaphore(buffer->semaphore, kDurationForever) != noErr) { audio_error = _("MPWaitOnSemaphore() failed"); @@ -263,7 +263,7 @@ int play(struct audio_play *play) /* wait for block to finish playing */ if (buffer->pcm_nsamples == 0) { - if (wait(buffer) == -1) + if (madplay_wait(buffer) == -1) return -1; buffer->pcm_length = 0;