diff options
| author | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-10 00:19:19 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-10 00:19:19 +0100 |
| commit | 2ba7a5056011da98c04fe33b5ee4b74d3a35da8c (patch) | |
| tree | 99ac2f241cd97142e67e28ffeb5632cb291bbfa7 /player.cpp | |
| parent | d20f58d7186794f6621bca8017c64ba50ace655e (diff) | |
fixed channel problem in player.cpp. Also started work on a polysynth example
Diffstat (limited to 'player.cpp')
| -rw-r--r-- | player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
