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

Option Remove delay after "play sound () until done" allowing songs to loop seamlessly #235

Open
H-A-M-G-E-R opened this issue Dec 17, 2024 · 2 comments

Comments

@H-A-M-G-E-R
Copy link

when flag clicked
play sound (start) until done
forever {
play sound (loop) until done
}

should be no delay between start and loop or loop and loop with this option enabled
without any custom extensions that make it unloadable on vanilla scratch

@CST1229
Copy link

CST1229 commented Dec 17, 2024

the thing is also that scripts running are always aligned to frame increments, and that can't really be fixed.

@H-A-M-G-E-R
Copy link
Author

H-A-M-G-E-R commented Dec 17, 2024

So I think seamless looping be added to the compiler (remove any frame delays), it's impossible using scratch's interpreter
I know that the MP3 format has a limitation that a tiny delay is added, so I use .ogg disguised as .mp3 to remove the tiny delay before the sound.
Even if the script is run in a no-screen-refresh custom block it's still not seamless

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

No branches or pull requests

2 participants