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

Fix AudioFile behaviour when overwriting existing audio files. #99

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

psobot
Copy link
Member

@psobot psobot commented Apr 16, 2022

When writing to the same file path twice, pedalboard.io.AudioFile could write incorrect output files, due to an inaccurate file position (end-of-old-file, rather than start-of-new-file) being returned to the format-specific file writing code. This PR fixes the issue and adds tests for it.

@psobot psobot added the bug Something isn't working label Apr 16, 2022
@psobot psobot merged commit 49cefb4 into master Apr 18, 2022
@psobot psobot deleted the psobot/fix-overwriting-file branch April 18, 2022 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant