Merge pull request #68 from ed-xmos/patch-1

Update xua_audiohub.xc
This commit is contained in:
Ross Owen
2018-11-16 14:57:29 +00:00
committed by GitHub

View File

@@ -573,15 +573,16 @@ unsigned static AudioHub_MainLoop(chanend ?c_out, chanend ?c_spd_out
return command; return command;
} }
/* Reset frame counter and flip the ADC buffer */ /* Reset audio to usb counter because we have now completed one USB transfer and flip the ADC buffer */
audioToUsbRatioCounter = 0; audioToUsbRatioCounter = 0;
frameCount = 0;
readBuffNo = !readBuffNo; readBuffNo = !readBuffNo;
} }
else else
{ {
++audioToUsbRatioCounter; ++audioToUsbRatioCounter;
} }
/* Reset the framecount because we have outputted all channels in the frame now */
frameCount = 0;
} }
} }
} }