summaryrefslogtreecommitdiff
blob: 20fb07ce781f7e5095a8ae3923bdc3b06bcad840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
===================================================================
RCS file: /cvsroot/rezound/rezound/src/backend/CSoundPlayerChannel.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- rezound/rezound/src/backend/CSoundPlayerChannel.cpp	2005/08/21 01:01:15	1.37
+++ rezound/rezound/src/backend/CSoundPlayerChannel.cpp	2005/11/12 04:13:29	1.38
@@ -721,8 +721,8 @@
 			if(!muted[i])  // ??? this memory needs to be locked for JACK's sake
 			{
 				// populate for interpolation
-				readBuffer[-(2*channelCount)+i]=prevLast2Frames[0][i]; 
-				readBuffer[-   channelCount +i]=prevLast2Frames[1][i];
+				readBuffer[-(2*(int)channelCount)+(int)i]=prevLast2Frames[0][i]; 
+				readBuffer[-   (int)channelCount +(int)i]=prevLast2Frames[1][i];
 				const sample_t * const rreadBuffer=readBuffer-(2*channelCount);
 
 				const vector<bool> outputRouting=getOutputRoute(0,i); // ??? this needs to be put into a data member of memory NOT TO BE SWAPPED for jack's sake and it needs to be updated in updateAfterEdit()
@@ -765,8 +765,8 @@
 			}
 
 			// save the last 2 samples and (later) the offset into the next-to-last so that we can use it for interpolation the next go around
-			prevLast2Frames[0][i]=readBuffer[((framesRead-2)*channelCount)+i];
-			prevLast2Frames[1][i]=readBuffer[((framesRead-1)*channelCount)+i];
+			prevLast2Frames[0][i]=readBuffer[(((int)framesRead-2)*(int)channelCount)+(int)i];
+			prevLast2Frames[1][i]=readBuffer[(((int)framesRead-1)*(int)channelCount)+(int)i];
 		}
 
 		// if all channels were muted, or none were mapped to an output device then this value never got set