-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Garbage in audio when exporting tracks #5548
Comments
I could not reproduce this behavior with the current master and libsndfile 1.0.28-7. Could you maybe share a project file? |
A few more things I noticed:
Did a rebuild just in case something wasn't right, blowing away and recreating my |
I can reproduce the behavior now with oversampling > 1. From what I can tell, the issue is that libsamplerate sometimes generates less samples than lmms expects. Could you please try out the draft PR above and check if the problem persists? |
Cool! I'll check the PR tomorrow or possibly later today. |
Looks like closing time, the fix is merged. |
Bug Summary
Exporting tracks leaves a few samples of garbage at the start of the audio files. Might be some buffer that should be cleared after each render but isn't?
Steps to reproduce
Export tracks as 16-bit WAV @ 44100 Hz.
Expected behavior
No garbage at start of audio files.
Actual behavior
Garbage at start of audio files, except for the first one rendered.
Screenshot
Ardour showing a couple of imported tracks:

Hachoir showing the data for one of the tracks, audio data highlighted in blue:

Affected LMMS versions
Master pulled and compiled on 2020-06-27, i.e. LMMS 1.2.1.702 (Linux x86_64, Qt 5.12.4, GCC 9.2.1 20191008)
Libsndfile 1.0.28 could be relevant, too.
The text was updated successfully, but these errors were encountered: