Skip to content
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

creating blocksize length output array in blocks reading if fill_value is set regardless of frames in file #457

Conversation

illesguy
Copy link
Contributor

@illesguy illesguy commented Jan 15, 2025

In a previous PR fixing blocks reading for files shorter than the specified blocksize, a regression was introduced resulting that even if the fill_value was specified, at most as many frames were read as the file had instead of the blocksize with the padding used. In this PR we add a fix so that if the fill_value is specified (and the output array is not), we will create an output array of blocksize regardless if the file doesn't have as many frames. Also added more unit tests to cover all these cases.

The regression mentioned above is part of version 0.13.0 of soundfile. Suggestion is to create a new version 0.13.1 with this fix included.

@bastibe bastibe merged commit 635bc9e into bastibe:master Jan 19, 2025
29 checks passed
@bastibe
Copy link
Owner

bastibe commented Jan 19, 2025

Thank you very much for promptly fixing this regression.

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