preliminary audio file output
This commit is contained in:
parent
7649b845aa
commit
f71ee6b45d
6 changed files with 40 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "dispatch.h"
|
||||
#include "engine.h"
|
||||
#include "../ta-log.h"
|
||||
#include <sndfile.h>
|
||||
|
||||
void DivEngine::nextOrder() {
|
||||
curRow=0;
|
||||
|
|
@ -716,6 +717,8 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
|
|||
blip_read_samples(bb[1],bbOut[1],size,0);
|
||||
}
|
||||
|
||||
if (out==NULL) return;
|
||||
|
||||
if (dispatch->isStereo()) {
|
||||
for (size_t i=0; i<size; i++) {
|
||||
out[0][i]=(float)bbOut[0][i]/16384.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue