Mercurial > hg > beaglert
comparison core/PRU.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 | ff5f346a293e |
children | f7b19ea31bbb |
comparison
equal
deleted
inserted
replaced
310:02c4ca0e3718 | 311:493a07f6ec09 |
---|---|
664 else if(out > 32767) out = 32767; | 664 else if(out > 32767) out = 32767; |
665 pru_buffer_audio_dac[n + pru_audio_offset] = (int16_t)out; | 665 pru_buffer_audio_dac[n + pru_audio_offset] = (int16_t)out; |
666 } | 666 } |
667 | 667 |
668 // Increment total number of samples that have elapsed | 668 // Increment total number of samples that have elapsed |
669 context->audioSampleCount += context->audioFrames; | 669 context->audioFramesElapsed += context->audioFrames; |
670 | 670 |
671 if(xenomai_gpio != 0) { | 671 if(xenomai_gpio != 0) { |
672 // Set the test pin high | 672 // Set the test pin high |
673 xenomai_gpio[GPIO_CLEARDATAOUT] = TEST_PIN_MASK; | 673 xenomai_gpio[GPIO_CLEARDATAOUT] = TEST_PIN_MASK; |
674 } | 674 } |