bmcfee / resampy

Efficient sample rate conversion in python
https://resampy.readthedocs.io
ISC License
253 stars 36 forks source link

Fix length calculation error #113

Closed bmcfee closed 2 years ago

bmcfee commented 2 years ago

Fixes #111

This PR fixes an edge case in the length calculation of output buffers by changing the order of operations in the multiplication and division.

A new test is added to cover the triggering case.