small oscBuf fix
This commit is contained in:
parent
7bf2a3ea1a
commit
785ac8d1a7
|
@ -1748,8 +1748,11 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
|
||||||
|
|
||||||
if (!playing) {
|
if (!playing) {
|
||||||
if (out!=NULL) {
|
if (out!=NULL) {
|
||||||
memcpy(oscBuf[0],out[0],size*sizeof(float));
|
for (unsigned int i=0; i<size; i++) {
|
||||||
memcpy(oscBuf[1],out[1],size*sizeof(float));
|
oscBuf[0][oscWritePos]=out[0][i];
|
||||||
|
oscBuf[1][oscWritePos]=out[1][i];
|
||||||
|
if (++oscWritePos>=32768) oscWritePos=0;
|
||||||
|
}
|
||||||
oscSize=size;
|
oscSize=size;
|
||||||
}
|
}
|
||||||
isBusy.unlock();
|
isBusy.unlock();
|
||||||
|
|
Loading…
Reference in a new issue