hinto-janai / festival

Music player
https://festival.pm
MIT License
270 stars 3 forks source link

resampler: revert 496bf41427e2ac70f4f3d06d19f90c90152be862 #78

Closed hinto-janai closed 9 months ago

hinto-janai commented 9 months ago

This reverts https://github.com/hinto-janai/festival/commit/496bf41427e2ac70f4f3d06d19f90c90152be862.

The old code was actually correct, we're creating and returning the interleaved from the self.output, so self.interleaved should match the output length, not the other way around.

The reason panics happened before was probably due to the interleaved having an old length from a previous resample.

Well, Festival GUI v1.3.2 is already out there so ... next time.