madplay

diff -up ./audio_carbon.c.lama ./audio_carbon.c
— ./audio_carbon.c.lama 2004-01-23 17:41:31.000000000 +0800
+++ ./audio_carbon.c 2008-10-01 20:22:00.000000000 +0800
@@ -94,7 +94,7 @@ void callback(SndChannelPtr channel, Snd
}

static
-int wait(struct buffer *buffer)
+int delay(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 (delay(buffer) == -1)
return -1;

buffer->pcm_length = 0;

#!/bin/bash

export CFLAGS=”
-I/Users/Shared/gnu/libid3tag-0.15.1b/include
-I/Users/Shared/gnu/libmad-0.15.1b/include
-msse

export CPPFLAGS=”
-I/Users/Shared/gnu/libid3tag-0.15.1b/include
-I/Users/Shared/gnu/libmad-0.15.1b/include

export LDFLAGS=”
-L/Users/Shared/gnu/libid3tag-0.15.1b/lib
-L/Users/Shared/gnu/libmad-0.15.1b/lib

./configure
–prefix=/Users/Shared/gnu/madplay-0.15.2b