comparison examples/10-Instruments/oscillator-bank/render.cpp @ 543:8f8809c77dda prerelease

updated basics, digital, instruments, extras examples
author chnrx <chris.heinrichs@gmail.com>
date Fri, 24 Jun 2016 13:19:52 +0100
parents b935f890e512
children
comparison
equal deleted inserted replaced
542:3016638b4da2 543:8f8809c77dda
75 // Return true on success; returning false halts the program. 75 // Return true on success; returning false halts the program.
76 bool setup(BelaContext *context, void *userData) 76 bool setup(BelaContext *context, void *userData)
77 { 77 {
78 srandom(time(NULL)); 78 srandom(time(NULL));
79 79
80 if(context->audioChannels != 2) { 80 if(context->audioOutChannels != 2) {
81 rt_printf("Error: this example needs stereo audio enabled\n"); 81 rt_printf("Error: this example needs stereo audio enabled\n");
82 return false; 82 return false;
83 } 83 }
84 84
85 // Initialise the sine wavetable 85 // Initialise the sine wavetable