Mercurial > hg > beaglert
diff 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 |
line wrap: on
line diff
--- a/examples/gpioAnalogLoopbackTest/render.cpp Fri May 27 18:29:20 2016 +0100 +++ b/examples/gpioAnalogLoopbackTest/render.cpp Fri May 27 18:37:51 2016 +0100 @@ -190,7 +190,7 @@ } count++; } - if(context->audioSampleCount > 30000){ + if(context->audioFramesElapsed > 30000){ gShouldStop = true; } } @@ -202,7 +202,7 @@ rt_printf("Test was succesful with %d analog channels and a buffer size of %d\n", context->analogChannels, context->audioFrames); } else { rt_printf("------------------------\n%danalog %ddigital errors over %dsamples while running test with ", - anaErrorCount, digErrorCount, context->audioSampleCount); + anaErrorCount, digErrorCount, context->audioFramesElapsed); rt_printf("%d analog channels and a buffer size of %d \n\n\n", context->analogChannels, context->audioFrames); exit(1);