Also, I submitted a pull request here to improve the feedback_accumulator calculation as part of the discussion in this thread since I had found it and it might help the next person.
So quick update, I did in fact update my code so I made the Teensy be master clock and Pi slave to it. That seemed to resolve most of the overrun issues because now the overrun is not counting up towards infinity anymore. It is now just at 1 and...
That’s a great idea. I was seeing overrun in my scenario when I tested this. I’m going to make some tweaks. My clocks got out of sync. I speculate I need to make Teensy be master I2S and Pi is slave going off Teensy clocks. It’ll take me a little...
Nice to hear that your problems with the USB interface have been solved. Thanks also to h4yn0nnym0u5e for helping me and contributing to the USB audio interface.
If you are not quite sure whether buffer over- or underruns occur even after...
I plugged the files in from this repo here. I then changed the "AUDIO_SAMPLE_RATE_EXACT" and "AUDIO_SAMPLE_RATE_I" to both 48000
I then recompiled/flashed over the new code to the Teensy and ran my same tests. Good news the results are as...
Sorry I should have clarified. I made this value calculation more of a formula so it turned out like this:
feedback_accumulator = (uint32_t)((AUDIO_SAMPLE_RATE_EXACT * 16777216.0f) / 1000.0f);
I used the original library and just made the above...
It is funny you mention that because I was just looking at that thread and even bookmarked the GitHub earlier. I wondered if my issue stemmed from the usb processing side of the code, like the “core” project logic. I have been studying the I2S...
I was using Device Manager to uninstall the device driver which seemed to do the trick. When I would make changes to the Audio library and then did my "Testing Audio Library Changes Steps" above, then I saw changes in the recorded sine wav audio...
Hi,
First let me preface this with a quick apology for the lengthy post as I wanted to be thorough. I am a bit over my head with a lot of this audio stuff and have been stuck on this problem for about 3 weeks so really appreciate any guidance...