You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lmms crashes when you play a note on the Audio File Processor with loop set but no file loaded.
Issue was introduced in #7100
Partially fixed in #7113
I tried moving the test from Loop::Off to the top of the for loop and that fixed the crash. I don't know what other possible issues arise from this however.
diff --git a/src/core/Sample.cpp b/src/core/Sample.cpp
index cd238b2ca..cef0f4ab1 100644
--- a/src/core/Sample.cpp+++ b/src/core/Sample.cpp@@ -175,10 +175,10 @@ void Sample::playRaw(sampleFrame* dst, size_t numFrames, const PlaybackState* st
for (size_t i = 0; i < numFrames; ++i)
{
+ if (index < 0 || index >= m_endFrame) { return; }
switch (loopMode)
{
case Loop::Off:
- if (index < 0 || index >= m_endFrame) { return; }
break;
case Loop::On:
if (index < m_loopStartFrame && backwards) { index = m_loopEndFrame - 1; }
LMMS Version(s)
master after a81ad74
Bug Summary
lmms crashes when you play a note on the Audio File Processor with loop set but no file loaded.
Issue was introduced in #7100
Partially fixed in #7113
I tried moving the test from Loop::Off to the top of the for loop and that fixed the crash. I don't know what other possible issues arise from this however.
@sakertooth @khoidauminh
Steps To Reproduce
Logs
bt full
Click to expand
Please search the issue tracker for existing bug reports before submitting your own.
The text was updated successfully, but these errors were encountered: