-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input_tdm: every odd channel had every other sample swapped #429
Comments
h4yn0nnym0u5e
added a commit
to h4yn0nnym0u5e/Audio
that referenced
this issue
Jun 18, 2022
PaulStoffregen#429 on upstream issues list
h4yn0nnym0u5e
added a commit
to h4yn0nnym0u5e/Audio
that referenced
this issue
Jun 18, 2022
AudioInputTDM[2] input bug fixes issue PaulStoffregen#429 Freeverb bug fixes mono output of AudioEffectFreeverbStereo reported in https://forum.pjrc.com/threads/70334-Possible-bug-in-effect_freeverb-cpp-in-the-current-release-of-Teensyduino-(1-56) Don't give me the credit, I just followed the instructions and did the PR!
h4yn0nnym0u5e
added a commit
to h4yn0nnym0u5e/Audio
that referenced
this issue
Feb 19, 2024
Description: PaulStoffregen#429 Fixes: PaulStoffregen#440 (credit to ccrome for the code, of course)
PaulStoffregen
pushed a commit
that referenced
this issue
Sep 8, 2024
AudioInputTDM[2] input bug fixes issue #429 Freeverb bug fixes mono output of AudioEffectFreeverbStereo reported in https://forum.pjrc.com/threads/70334-Possible-bug-in-effect_freeverb-cpp-in-the-current-release-of-Teensyduino-(1-56) Don't give me the credit, I just followed the instructions and did the PR!
Fixed by #440 which has been merged, so this issue can be closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
input_tdm: every odd channel had every other sample swapped
The TDM input and TDM2 Input modules have samples swapped on every other frame. So for example, assume the following 6 frames of 16 channels from TDM: The first digits are the channel, the last digit is the frame number:
Here's what's on the TDM bus:
But here's what gets copied into the TDM buffers
Steps To Reproduce Problem
It's pretty easy to reproduce
Hardware & Software
Arduino Sketch
Errors or Incorrect Output
You can play and record simulataneously from the host. Samples are swapped on all odd TDM channels as seen in this picture:
Top: played out to left and right.
Middle: recorded USB left
Bottom: recorded USB right, with swapped samples.
Bug fixed with pull request
Here's the fix for the problem:
2021426
Here are the results after the fix:
The text was updated successfully, but these errors were encountered: