aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2005-06-03 11:42:48 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2005-06-03 11:42:48 +0000
commit6b6fd72704555b2e108d53b747a5cd632e1a7e22 (patch)
tree8cc4f7b5407eee43a7388b02f0568950cd004d2f /audio
parent36da7160ab479d32e2b00d56d073068fef47cd14 (diff)
downloadports-6b6fd72704555b2e108d53b747a5cd632e1a7e22.tar.gz
ports-6b6fd72704555b2e108d53b747a5cd632e1a7e22.zip
Fix build on RELENG_5 (gcc 3.4.2).
Problem submitted by: Eugene M. Zheganin <emz@norma.perm.ru> Idea for patch from: fjoe PR: 81827
Notes
Notes: svn path=/head/; revision=136717
Diffstat (limited to 'audio')
-rw-r--r--audio/muse/files/patch-src::pipe.cpp119
1 files changed, 117 insertions, 2 deletions
diff --git a/audio/muse/files/patch-src::pipe.cpp b/audio/muse/files/patch-src::pipe.cpp
index bc2e8a220f78..f006ea670474 100644
--- a/audio/muse/files/patch-src::pipe.cpp
+++ b/audio/muse/files/patch-src::pipe.cpp
@@ -1,5 +1,5 @@
---- src/pipe.cpp.orig Mon Dec 8 21:20:33 2003
-+++ src/pipe.cpp Mon Apr 19 22:39:37 2004
+--- src/pipe.cpp.orig Mon Dec 8 17:20:33 2003
++++ src/pipe.cpp Fri Jun 3 16:58:02 2005
@@ -25,7 +25,8 @@
*/
@@ -10,3 +10,118 @@
#include <audioproc.h>
#include <pipe.h>
#include <jutils.h>
+@@ -118,9 +119,9 @@
+ }
+ /* --- */
+
+- (char*)start += currentBlockSize;
++ start = (char*)start + currentBlockSize;
+ len -= currentBlockSize;
+- (char*)pp += currentBlockSize;
++ pp = (float*)pp + currentBlockSize;
+ length -= currentBlockSize;
+ if ((end!=buffer) && (start==bufferEnd))
+ start = buffer;
+@@ -146,8 +147,8 @@
+ }
+ /* --- */
+
+- (char*)pp += len;
+- (char*)start += len;
++ pp = (float*)pp + len;
++ start = (char*)start + len;
+ length -= len;
+ if ((end!=buffer) && (start==bufferEnd))
+ start = buffer;
+@@ -224,9 +225,9 @@
+ }
+ /* --- */
+
+- (char*)start += currentBlockSize;
++ start = (char*)start + currentBlockSize;
+ len -= currentBlockSize;
+- (char*)pp += currentBlockSize;
++ pp = (float**)pp + currentBlockSize;
+ length -= currentBlockSize;
+ if ((end!=buffer) && (start==bufferEnd))
+ start = buffer;
+@@ -253,8 +254,8 @@
+ }
+ /* --- */
+
+- (char*)pp += len;
+- (char*)start += len;
++ pp = (float**)pp + len;
++ start = (char*)start + len;
+ length -= len;
+ if ((end!=buffer) && (start==bufferEnd))
+ start = buffer;
+@@ -309,9 +310,9 @@
+ pp[c] += (int32_t) ((IN_DATATYPE*)start)[c];
+ /* --- */
+
+- (char*)start += currentBlockSize;
++ start = (char*)start + currentBlockSize;
+ len -= currentBlockSize;
+- (char*)pp += currentBlockSize;
++ pp = (int32_t*)pp + currentBlockSize;
+ length -= currentBlockSize;
+ if ((end!=buffer) && (start==bufferEnd))
+ start = buffer;
+@@ -324,8 +325,8 @@
+ pp[c] += (int) ((IN_DATATYPE*)start)[c];
+ /* --- */
+
+- (char*)pp += len;
+- (char*)start += len;
++ pp = (int32_t*)pp + len;
++ start = (char*)start + len;
+ length -= len;
+ if ((end!=buffer) && (start==bufferEnd))
+ start = buffer;
+@@ -372,17 +373,17 @@
+ /* fill */
+ memcpy(data, start, currentBlockSize);
+
+- (char*)start += currentBlockSize;
++ start = (char*)start + currentBlockSize;
+ len -= currentBlockSize;
+- (char*)data += currentBlockSize;
++ data = (char*)data + currentBlockSize;
+ length -= currentBlockSize;
+ if ((end!=buffer) && (start==bufferEnd))
+ start = buffer;
+
+ if (len) { /* short circuit */
+ memcpy(data, start, len);
+- (char*)data += len;
+- (char*)start += len;
++ data = (char*)data + len;
++ start = (char*)start + len;
+ length -= len;
+ if ((end!=buffer) && (start==bufferEnd))
+ start = buffer;
+@@ -418,19 +419,19 @@
+ currentBlockSize=MIN(currentBlockSize, len);
+ ::memcpy(end, data, currentBlockSize);
+
+- (char*)end += currentBlockSize;
++ end = (char*)end + currentBlockSize;
+
+ len -= currentBlockSize;
+
+- (char*)data += currentBlockSize;
++ data = (char*)data + currentBlockSize;
+ length -= currentBlockSize;
+ if ((start!=buffer) && (end==bufferEnd))
+ end = buffer;
+
+ if (len) { // short circuit
+ ::memcpy(end, data, len);
+- (char*)data += len;
+- (char*)end += len;
++ data = (char*)data + len;
++ end = (char*)end + len;
+ length -= len;
+
+ if ((start!=buffer) && (end==bufferEnd))