Skip to content

FIX: keep int32 and uint8 WAV formats in AudioFrequencyConverter - #3109

Merged
Richard Lundeen (richlundeen) merged 5 commits into
microsoft:mainfrom
u7k4rs6:fix/audio-frequency-dtype
Oct 12, 2026
Merged

Richard Lundeen (richlundeen) merged 5 commits into
microsoft:mainfrom
u7k4rs6:fix/audio-frequency-dtype

Conversation

@u7k4rs6

Copy link
Copy Markdown
Contributor

Fixes #3108.

Same approach as the volume/echo fix in #2933: shift around 128 for uint8, keep the input dtype, and clip integer output to its range. int16 and float input give the same samples as before.

Tests: int32 and uint8 at shift 0 come back unchanged with the same dtype, and at a quarter-period shift match the expected samples. 4 new cases fail on main. tests/unit/converter: 2073 passed.

@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Oct 12, 2026
Merged via the queue into microsoft:main with commit 1ea2c31 Oct 12, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: AudioFrequencyConverter corrupts int32 and uint8 WAV files

2 participants