Fix producing of NaN from Env/LFO parameter change while playing.#3761
Merged
Conversation
Guarantee thread safety to ensure fillLevel() not to read value from wrong buffer address.
Closed
michaelgregorius
requested changes
Aug 10, 2017
michaelgregorius
left a comment
Contributor
There was a problem hiding this comment.
Please use QMutexLockers to ensure safe unlocking in cases of exceptions, etc.
| const f_cnt_t _release_begin, | ||
| const fpp_t _frames ) | ||
| { | ||
| m_paramMutex.lock(); |
Contributor
There was a problem hiding this comment.
Please use a QMutexLocker here to ensure safe unlocking in cases of exceptions, etc.
|
|
||
| void EnvelopeAndLfoParameters::updateSampleVars() | ||
| { | ||
| m_paramMutex.lock(); |
Contributor
There was a problem hiding this comment.
Please use a QMutexLocker here to ensure safe unlocking in cases of exceptions, etc.
Member
Author
|
@michaelgregorius Done via 667ee11. |
zonkmachine
approved these changes
Aug 10, 2017
zonkmachine
left a comment
Contributor
There was a problem hiding this comment.
Tested. Issue fixed.
michaelgregorius
approved these changes
Aug 11, 2017
Member
Author
|
I'll merge it after 12~24 hours if there's no objection. |
PhysSong
added a commit
to PhysSong/lmms
that referenced
this pull request
Aug 19, 2017
…S#3761) Guarantee thread safety to ensure fillLevel() not to read value from wrong buffer address.
PhysSong
added a commit
to PhysSong/lmms
that referenced
this pull request
Aug 25, 2017
…S#3761) Guarantee thread safety to ensure fillLevel() not to read value from wrong buffer address.
sdasda7777
pushed a commit
to sdasda7777/lmms
that referenced
this pull request
Jun 28, 2022
…S#3761) Guarantee thread safety to ensure fillLevel() not to read value from wrong buffer address.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3408.
Guarantee thread safety to ensure
fillLevel()not to read value from wrong buffer address, because of buffer reallocation inupdateSampleVars().