[56182] trunk/dports/audio/madplay

toby at macports.org toby at macports.org
Mon Aug 24 23:09:03 PDT 2009


Revision: 56182
          http://trac.macports.org/changeset/56182
Author:   toby at macports.org
Date:     2009-08-24 23:08:57 -0700 (Mon, 24 Aug 2009)
Log Message:
-----------
endian fix

Modified Paths:
--------------
    trunk/dports/audio/madplay/Portfile
    trunk/dports/audio/madplay/files/patch-audio_carbon.c

Modified: trunk/dports/audio/madplay/Portfile
===================================================================
--- trunk/dports/audio/madplay/Portfile	2009-08-25 05:53:19 UTC (rev 56181)
+++ trunk/dports/audio/madplay/Portfile	2009-08-25 06:08:57 UTC (rev 56182)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 name		madplay
 version		0.15.2b
-revision	1
+revision	2
 categories	audio
 maintainers	nomaintainer
 description	MPEG Audio Decoder

Modified: trunk/dports/audio/madplay/files/patch-audio_carbon.c
===================================================================
--- trunk/dports/audio/madplay/files/patch-audio_carbon.c	2009-08-25 05:53:19 UTC (rev 56181)
+++ trunk/dports/audio/madplay/files/patch-audio_carbon.c	2009-08-25 06:08:57 UTC (rev 56182)
@@ -1,5 +1,5 @@
---- audio_carbon.c.bak	2006-03-11 18:24:37.000000000 +0100
-+++ audio_carbon.c	2006-03-11 18:25:03.000000000 +0100
+--- audio_carbon.c.orig	2004-01-23 01:41:31.000000000 -0800
++++ audio_carbon.c	2009-08-24 23:07:41.000000000 -0700
 @@ -94,7 +94,7 @@
  }
  
@@ -9,7 +9,19 @@
  {
    if (MPWaitOnSemaphore(buffer->semaphore, kDurationForever) != noErr) {
      audio_error = _("MPWaitOnSemaphore() failed");
-@@ -263,7 +263,7 @@
+@@ -234,7 +234,11 @@
+     break;
+ 
+   case 16:
++#ifdef __BIG_ENDIAN__
+     audio_pcm = audio_pcm_s16be;
++#else
++    audio_pcm = audio_pcm_s16le;
++#endif
+     break;
+   }
+ 
+@@ -263,7 +267,7 @@
    /* wait for block to finish playing */
  
    if (buffer->pcm_nsamples == 0) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090824/a18af1d0/attachment.html>


More information about the macports-changes mailing list