diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-05-21 18:49:40 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-05-21 18:49:40 +0100 |
| commit | 0f5301b988bad81b2f27ba4d88c6ee3d0205603a (patch) | |
| tree | 90f7d460246d7c8e22ec8933657ee9864b1fa9fc /vamphost/src/ofxVamphost.cpp | |
| parent | 322ce92fbd477395657c64593d1d1bf9a9b6f620 (diff) | |
vamp not crashing but no features
Diffstat (limited to 'vamphost/src/ofxVamphost.cpp')
| -rw-r--r-- | vamphost/src/ofxVamphost.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vamphost/src/ofxVamphost.cpp b/vamphost/src/ofxVamphost.cpp index fc8bbf0..1ba2b4e 100644 --- a/vamphost/src/ofxVamphost.cpp +++ b/vamphost/src/ofxVamphost.cpp @@ -143,8 +143,8 @@ void Vamphost::process_frame(float *data,int samples_in_frame){ //when the frame is finished leave the partial block for the next frame while(sample<samples_in_frame) { while(sample<samples_in_frame&&in_block<blockSize) { - for (int i=0;i<channels;i++) {} - plugbuf[i][in_block]=data[0]; //sample]; + for (int i=0;i<channels;i++) { + plugbuf[i][in_block]=data[sample]; } in_block++; sample++; @@ -174,6 +174,7 @@ void Vamphost::process_frame(float *data,int samples_in_frame){ currentStep++; } } +} void Vamphost::cleanup(){ |
