-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Add sound extension #100
Add sound extension #100
Conversation
is it possible to add "play sound from url until done" ? |
Yes |
This comment was marked as off-topic.
This comment was marked as off-topic.
Change this to use Scratch's AudioContext ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
Standart scratch meow
As suggested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some changes:
- It will first try to play the sound using Scratch's audio engine, which means it'll integrate with volume, pitch, pan left/right, etc.
- If the sound can't be played that way (most likely because the URL does not support CORS), it will instead just use an
<audio>
element, like the original version.
Is it possible to add "pause [url]" ? |
From the audio element it is, but I don't know if it is possible with the audioEngine. |
It will be possible in audio engine, just a good bit more annoying |
We'll do pausing later |
Whoever wants pausing: Open a new issue and describe which exact blocks you would like. There's a lot of ways this could be done and I don't want to have to change it later. Also less likely to be forgotten that way. |
As suggested in #92
Playing sound from device didn't make it there because chrome blocks it.