Skip to content

AudioResampler: default to 32 taps, test taps 1-64 - #1608

Merged
Mysticial merged 2 commits into
mainfrom
audio-resampler-default-32-taps
Oct 18, 2026
Merged

Mysticial merged 2 commits into
mainfrom
audio-resampler-default-32-taps

Conversation

@pa-devbot

Copy link
Copy Markdown
Collaborator

Follow-up to #1572.

  • Default tap count 16 -> 32 (the kernels are tap-count agnostic; this only sizes the weight table).
  • Test coverage across the supported tap range:
    • stream tests: taps {1,2,3,4,5,8,32,48,63,64} on the 1:1 combo, plus taps 1 and 64 on 8000->44100 where the tap count dominates the next block's input requirement;
    • dispatch tests: taps {1,32,64} across the kernel families (up / down2 / tap8 paths);
    • Default-kernel ULP tests: taps 1 and 64 alongside 16.

52 tests total (was 34), all passing locally on the NEON path; x64 kernel paths covered by CI.

16 taps is a fairly aggressive truncation of the ideal sinc window;
32 taps is still cheap (the kernels are tap-count agnostic, the cost
is one weight table row per tap) and measurably closer to the ideal
filter for the sample rates this node targets.
Stream tests: a 1/2/3/4/5/8/32/48/63/64 sweep on the 1:1 combo
(counts below the kernels' tap blocks are zero padded, odd counts
exercise the unrolls' final partial group, wide counts stress the
carry sizing and Kaiser window width) plus taps 1 and 64 on the
strongest upsampling combo, where the tap count dominates the next
block's input requirement. Dispatch tests: taps 1, 32, 64 across the
kernel families. Default-kernel ULP tests: taps 1 and 64 alongside
the standard 16.
@Mysticial
Mysticial merged commit 9aea52f into main Oct 18, 2026
8 checks passed
@Mysticial
Mysticial deleted the audio-resampler-default-32-taps branch October 18, 2026 02:02
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.

2 participants