aboutsummaryrefslogtreecommitdiffstats
path: root/player.cpp
diff options
context:
space:
mode:
authorMick Grierson <mickgrierson@strangebook.lan>2011-10-10 00:19:19 +0100
committerMick Grierson <mickgrierson@strangebook.lan>2011-10-10 00:19:19 +0100
commit2ba7a5056011da98c04fe33b5ee4b74d3a35da8c (patch)
tree99ac2f241cd97142e67e28ffeb5632cb291bbfa7 /player.cpp
parentd20f58d7186794f6621bca8017c64ba50ace655e (diff)
fixed channel problem in player.cpp. Also started work on a polysynth example
Diffstat (limited to 'player.cpp')
-rw-r--r--player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/player.cpp b/player.cpp
index cc7aafd..51ae4fb 100644
--- a/player.cpp
+++ b/player.cpp
@@ -25,7 +25,7 @@
void setup();//use this to do any initialisation if you want.
-void play(double *channels);//run dac! Very very often. Too often in fact. er...
+void play(double *output);//run dac! Very very often. Too often in fact. er...
@@ -58,7 +58,7 @@ int routing (void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
for ( i=0; i<nBufferFrames; i++ ) {
play(lastValues);
for ( j=0; j<maxiSettings::channels; j++ ) {
- *buffer++=lastValues[0];
+ *buffer++=lastValues[j];
}
}
return 0;