Mercurial > hg > beaglert
comparison examples/gpioAnalogLoopbackTest/render.cpp @ 311:493a07f6ec09 prerelease
Renamed BelaContext->audioSampleCount to BelaContext->audioFramesElapsed for consistency of terminology
author | andrewm |
---|---|
date | Fri, 27 May 2016 18:37:51 +0100 |
parents | 02c4ca0e3718 |
children | 9dc5a0ccad25 |
comparison
equal
deleted
inserted
replaced
310:02c4ca0e3718 | 311:493a07f6ec09 |
---|---|
188 digitalOutPointer = 0; | 188 digitalOutPointer = 0; |
189 } | 189 } |
190 } | 190 } |
191 count++; | 191 count++; |
192 } | 192 } |
193 if(context->audioSampleCount > 30000){ | 193 if(context->audioFramesElapsed > 30000){ |
194 gShouldStop = true; | 194 gShouldStop = true; |
195 } | 195 } |
196 } | 196 } |
197 | 197 |
198 | 198 |
200 { | 200 { |
201 if(anaErrorCount == 0 && digErrorCount == 0){ | 201 if(anaErrorCount == 0 && digErrorCount == 0){ |
202 rt_printf("Test was succesful with %d analog channels and a buffer size of %d\n", context->analogChannels, context->audioFrames); | 202 rt_printf("Test was succesful with %d analog channels and a buffer size of %d\n", context->analogChannels, context->audioFrames); |
203 } else { | 203 } else { |
204 rt_printf("------------------------\n%danalog %ddigital errors over %dsamples while running test with ", | 204 rt_printf("------------------------\n%danalog %ddigital errors over %dsamples while running test with ", |
205 anaErrorCount, digErrorCount, context->audioSampleCount); | 205 anaErrorCount, digErrorCount, context->audioFramesElapsed); |
206 rt_printf("%d analog channels and a buffer size of %d \n\n\n", | 206 rt_printf("%d analog channels and a buffer size of %d \n\n\n", |
207 context->analogChannels, context->audioFrames); | 207 context->analogChannels, context->audioFrames); |
208 exit(1); | 208 exit(1); |
209 } | 209 } |
210 } | 210 } |