Files
pkgsrc-ng/audio/madplay/patches/patch-ac
2013-09-26 17:14:40 +02:00

23 lines
662 B
Plaintext

$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;