-
-
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
Sample tracks eats buffers #3169
Comments
There's a SampleBuffer being created in one of the constructors, https://github.com/LMMS/lmms/blob/master/src/core/SamplePlayHandle.cpp#L38 |
Yeah, I noticed that one and I tried to just wrap a |
Like The bug might be somewhere else, but that small flaw jumped out right away when reading the code. |
That's exactly what I tried. Just tried it again and it makes no difference. I'm going to have one more go at fixing this. |
It looks like we first create an m_sampleBuffer in the SampleTCO Edit: fixed link... |
I think I'll pass this one... Rude little buffers. 😠 |
Crashes quite reliably at bar 128:0:0 using metronome. No crash for me when simulating metronome in a bar & beat-track using the same samples.
Line 357 in 05ace7e
Not sure if |
Right, sorry, I explained this poorly. It's the sample tracks that crash, and the metronome is managed as a sample track, hence the example. If you loop any sample in a sample track for the number of buffers, 512, you run out of them. |
So far, I've checked these through some
|
OT: Comment moved to separate bug 3173... |
I tried wav, ogg and flac and the sample type made no difference.
|
Load a couple of big files into LMMS, be it sample track or AFP. When you delete the tracks the memory isn't freed up. It was in 1.1.3 . Maybe open a separate issue for this. |
Since #1088
LMMS Memory Manager
(~LMMS 1.1.0), buffers acquired through the SamplePlayHandle() aren't handed back after playing. If you stop a sample played from a SampleTrack the buffer is properly released but if the sample plays all the way through it's gone.This is best demonstrated by activating the metronome and hitting play. At 180 bpm it will take almost three minutes to chomp up all 512 of them at my machine and close down business.
These leaked buffers will stay gone as long as LMMS is running, even if you load another project or a default one. Gone...
The text was updated successfully, but these errors were encountered: