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 various AudioFileProcessor bugs #7533

Merged
merged 7 commits into from
Oct 6, 2024

Conversation

RiedleroD
Copy link
Contributor

@RiedleroD RiedleroD commented Oct 3, 2024

  • fixed crash by correctly setting m_from and m_to without them interfering with each other (bdfecb6)
    crash is reproducable by fiddling with the endpoint and reversing every now and then, especially when zoomed in very far.

  • fixed flattened wave caused by inaccurate math (18b0e8c)
    note: since this affects maxFrames, other less obvious inaccuracies are also fixed by this

    Before/After Comparison

    Reproducable by loading AcousticDrumset preset and looking at bassdrum_acoustic01.ogg.

    Before After
    image image

  • stop drawing waveform after end of data d108c48
    very subtle, but it kept bugging me, and it also helps with debugging the rest of this mess

    Before/After Comparison

    Reproducable by loading AcousticDrumset preset, setting bassdrum_acoustic01.ogg endpoint to 0.6, and fiddling with the volume knob.

    Before After
    image image

  • correctly wrap drawing of waveform (2b7a3bf)

    Before/After Comparison

    Reproducable by loading AcousticDrumset preset, setting bassdrum_acoustic01.ogg endpoint to 0.5, and clicking on reverse.

    Before After
    image image

by correctly setting m_from and m_to without them interfering with each other
this fixes the single point at the end of waveforms that sometimes shows up
execution seemed fine but my debugger started freaking out,
and if gdb is telling me I got a negative-sized vector,
I'd rather fix this issue than speculate "it's probably fine"
the data itself isn't reversed, so we have to account for that
@RiedleroD
Copy link
Contributor Author

eh, the other problems are just minor annoyances. If there's anything major I missed, feel free to tell me.

@RiedleroD RiedleroD marked this pull request as ready for review October 4, 2024 01:18
Copy link
Contributor

@michaelgregorius michaelgregorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RiedleroD, just some small remarks. I like how you have presented the individual fixes with commit references in the description! 👍

@michaelgregorius michaelgregorius merged commit 0363ee6 into LMMS:master Oct 6, 2024
11 checks passed
@RiedleroD RiedleroD deleted the fix-afp-reverse branch October 6, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants