summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2005-06-03 11:42:48 +0000
committerosa <osa@FreeBSD.org>2005-06-03 11:42:48 +0000
commit8792c626232f3ac5d8b12c10631161521deab93b (patch)
treee74727971f0617a8e8443ccbd3af129a711744f2 /audio
parent2f9415bf8728f7335378b1ee2361b6d043030b5c (diff)
downloadFreeBSD-ports-8792c626232f3ac5d8b12c10631161521deab93b.zip
FreeBSD-ports-8792c626232f3ac5d8b12c10631161521deab93b.tar.gz
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
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 bc2e8a2..f006ea6 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))
OpenPOWER on IntegriCloud