-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
New "speexdec" resampler #595
Conversation
// limit by output size, input size, and accumulator | ||
const size_t copy_size = std::min( | ||
out_size - out_pos, | ||
std::min(in_size_ - in_pos_, (size_t)ceilf(out_acc_ / num_ch_) * num_ch_)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand the code now, the 3rd branch in here should not evaluate ever, as 197-202 lines make it impossible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, this is an artifact from an older version. Fixed.
Update: added |
- slower sine wave - 99% percentile for sample comparison
- add DecimationResampler class - add SpeexDec backend that combines DecimationResampler + SpeexResampler
- cleanup - cover more combinations of parameters - add scaling_trend test
PR contains 3 commits: