comparison examples/04-Audio/oscillator-bank/render.cpp @ 544:cdabbaf3a252 prerelease

Updated Audio examples for audioOutChannels etc.
author Robert Jack <robert.h.jack@gmail.com>
date Fri, 24 Jun 2016 13:32:07 +0100
parents 1cec96845a23
children
comparison
equal deleted inserted replaced
543:8f8809c77dda 544:cdabbaf3a252
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