这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@J5lx
Copy link
Member

@J5lx J5lx commented May 27, 2025

SoundManager duplicates SoundClip’s length calculation but without taking the ceil() of the calculated length. This can result in a length of 0 for very short clips, essentially preventing interaction with them. To avoid this, reuse SoundClip’s recalculation mechanism. I believe this is the might be the same issue as reported in this forum post, though the specific durations given don’t particularly make sense to me.

@J5lx J5lx added this to the 0.7.1 milestone May 27, 2025
@J5lx J5lx added the Bug label May 27, 2025
@J5lx J5lx added the Sound label May 27, 2025
Copy link
Member

@MrStevns MrStevns left a comment

Choose a reason for hiding this comment

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

Not tested but the change makes sense to me.

Good job 👍

@github-project-automation github-project-automation bot moved this from Needs Review to Approved in Pull Request Priority May 28, 2025
Copy link
Member

@scribblemaniac scribblemaniac left a comment

Choose a reason for hiding this comment

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

I was going to look at this last weekend but got sidetracked by some tablet issues. The durations do make more sense if you consider that user typically animates at 8 fps, which would result in a frameLength of 0.8 for 0.1s, and 1.76 for 0.22s. I could reproduce the user's problems with moving and deleting the keyframes and even found an additional crash during playback. This appears to fix all of those issues 🌟

Good to go 👍

@scribblemaniac scribblemaniac merged commit a9013b6 into pencil2d:master May 28, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Pull Request Priority May 28, 2025
@J5lx J5lx deleted the fixes/short-clips branch May 29, 2025 00:00
@MrStevns
Copy link
Member

MrStevns commented May 29, 2025

I was just reminded.. we should ideally be updating the changelog file on every bugfix or improvement we make, so we don't have to do it in bulks like last time.

I've already accumulated the ones I found here:
#1907

but given how long that PR has been lying there now.. I should have made a separate PR for that task

@chchwy chchwy mentioned this pull request Jun 19, 2025
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants