|
Lines 721-728
Link Here
|
| 721 |
if(!muted[i]) // ??? this memory needs to be locked for JACK's sake |
721 |
if(!muted[i]) // ??? this memory needs to be locked for JACK's sake |
| 722 |
{ |
722 |
{ |
| 723 |
// populate for interpolation |
723 |
// populate for interpolation |
| 724 |
readBuffer[-(2*channelCount)+i]=prevLast2Frames[0][i]; |
724 |
readBuffer[-(2*(int)channelCount)+(int)i]=prevLast2Frames[0][i]; |
| 725 |
readBuffer[- channelCount +i]=prevLast2Frames[1][i]; |
725 |
readBuffer[- (int)channelCount +(int)i]=prevLast2Frames[1][i]; |
| 726 |
const sample_t * const rreadBuffer=readBuffer-(2*channelCount); |
726 |
const sample_t * const rreadBuffer=readBuffer-(2*channelCount); |
| 727 |
|
727 |
|
| 728 |
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() |
728 |
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() |
|
Lines 765-772
Link Here
|
| 765 |
} |
765 |
} |
| 766 |
|
766 |
|
| 767 |
// 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 |
767 |
// 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 |
| 768 |
prevLast2Frames[0][i]=readBuffer[((framesRead-2)*channelCount)+i]; |
768 |
prevLast2Frames[0][i]=readBuffer[(((int)framesRead-2)*(int)channelCount)+(int)i]; |
| 769 |
prevLast2Frames[1][i]=readBuffer[((framesRead-1)*channelCount)+i]; |
769 |
prevLast2Frames[1][i]=readBuffer[(((int)framesRead-1)*(int)channelCount)+(int)i]; |
| 770 |
} |
770 |
} |
| 771 |
|
771 |
|
| 772 |
// if all channels were muted, or none were mapped to an output device then this value never got set |
772 |
// if all channels were muted, or none were mapped to an output device then this value never got set |