extensions icon indicating copy to clipboard operation
extensions copied to clipboard

More options for the Sound extension

Open Alestore opened this issue 2 years ago • 11 comments

I think the Sound extension has a lot of potential. I haven't tried yet if it's possible to start the sound from a local directory (presumably from the same folder as the project).

What I would definitely like to see in this extension is:

  • Ability to stop a sound while it's playing
  • Blocks to change sound volume
  • Apply effects (similar to the blocks included in Scratch related to Sound)

This extension, with the additions that I have recommended, would be a solution to the continuous lag and the heaviness of certain projects that have loaded the entire running project into RAM. Making the sounds available within a local directory would allow the audio to play even offline and without sound load times (if heavy enough). Also, playing audio files only when needed without having all other audio loaded into RAM memory (even when they are not being played), would save a lot of memory and the initial load times of packaged projects would be drastically reduced.

Alestore avatar May 26 '23 16:05 Alestore

I think there should also be a block that plays a sound until it's stopped so you don't have to stop all scripts in the sprite or add a variable to stop a sound that's in a forever loop. Also the block that you mentioned which stops a sound while it's playing should have a dropdown box to stop sounds from specific sprites.

UndermanReal avatar May 26 '23 21:05 UndermanReal

I think there should also be a block that plays a sound until it's stopped so you don't have to stop all scripts in the sprite or add a variable to stop a sound that's in a forever loop. Also the block that you mentioned which stops a sound while it's playing should have a dropdown box to stop sounds from specific sprites.

There is already a block that says "Play audio from (location) until done". Maybe this is what you are suggesting.

I completely agree with the drop-down box to stop specific sounds from specific sprites, this sounds really useful.

Alestore avatar May 27 '23 04:05 Alestore

By "Play sound until stopped" I mean for it to play a sound until your suggested stop a sound while its playing block is used.

UndermanReal avatar May 27 '23 13:05 UndermanReal

By "Play sound until stopped" I mean for it to play a sound until your suggested stop a sound while its playing block is used.

Would it loop the sound until the stop block is used?

CST1229 avatar May 27 '23 13:05 CST1229

yes

UndermanReal avatar May 27 '23 13:05 UndermanReal

Ability to stop a sound while it's playing

You can do this in base Turbowarp already. Turn off Misc. Limits (disables sound limits), then set pitch effect to (-1 / empty value). The result is a pitch of -Infinity which basically slows down the audio so much that it's practically silent and paused.

gomigg07 avatar May 27 '23 15:05 gomigg07

Ability to stop a sound while it's playing

You can do this in base Turbowarp already. Turn off Misc. Limits (disables sound limits), then set pitch effect to (-1 / empty value). The result is a pitch of -Infinity which basically slows down the audio so much that it's practically silent and paused.

Yes ok but if I want to put another sound from the same Sprite when the previous sound is not finished and is only paused, putting back the normal pitch they will both continue mixing

Alestore avatar May 27 '23 15:05 Alestore

Ability to stop a sound while it's playing

You can do this in base Turbowarp already. Turn off Misc. Limits (disables sound limits), then set pitch effect to (-1 / empty value). The result is a pitch of -Infinity which basically slows down the audio so much that it's practically silent and paused.

I'd rather like a block like "stop all sounds" (like in basic TurboWarp)

Alestore avatar May 27 '23 15:05 Alestore

I've suggested a couple of these features before: #114

DNin01 avatar Jun 06 '23 18:06 DNin01

I've suggested a couple of these features before: #114

This refers specifically to the Sound extension that allows you to play sounds from URLs

LilyMakesThings avatar Jun 06 '23 18:06 LilyMakesThings

Try this, It has everything youre looking for, and more! Tune Shark V3 You can find it here: https://sharkpools-extensions.vercel.app/ or https://github.com/TurboWarp/extensions/pull/1489

Load it unsandboxed

SharkPool-SP avatar May 26 '24 03:05 SharkPool-SP