Skip to content

Commit

Permalink
bela file
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazzarini committed Dec 19, 2017
1 parent 96ad277 commit 3b9a65b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Bela/BelaCsound.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*********************************************************/
/* Bela Csound Rendering functions */
/* */
/*********************************************************/
/*******************************************************************************/
/* Bela Csound Rendering functions */
/* */
/*******************************************************************************/

#include <Bela.h>
#include <csound/csound.hpp>
Expand All @@ -18,10 +18,13 @@ csData* gCsData;
bool setup(BelaContext *context, void *userData)
{
Csound *csound = new Csound();
gCsData = new csData;
const char *csdfile = "my.csd";
int numArgs = 6;
char *args[] = { "csound", csdfile, "-iadc", "-odac","-+rtaudio=null", "--realtime",
"--daemon"};
gCsData = new csData;
csound->SetHostImplementedAudioIO(1,32);
gCsData->res = csound->Compile("simple.csd", "-iadc", "-odac",
"-+rtaudio=null", "--realtime"); // TODO get CSD name
gCsData->res = csound->Compile(numArgs, args);
gCsData->csound = csound;
gCsData->blocksize = csound->GetOutputBufferSize();
gCsData->count = 0;
Expand Down

0 comments on commit 3b9a65b

Please sign in to comment.