summaryrefslogtreecommitdiff
path: root/audio/madplay/patches/patch-ac
blob: 601bb71a46a3a260cdd7c54422ab45c3368c1b62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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;