This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-26 11:05:51

WingsGames
Scratcher
Registered: 2011-02-21
Posts: 500+

Pausing sounds

Is there a way to pause sounds so that they can be resumed from the place they were paused?


Are you an aspiring home decorator? If so, please answer my question!

Offline

 

#2 2011-11-26 11:11:29

fuz50
Scratcher
Registered: 2008-09-19
Posts: 100+

Re: Pausing sounds

Not that I know of.


http://img10.imageshack.us/img10/7404/cooltext529102298.jpg
http://siggen.toontown-click.de/sig1.pnghttp://siggen.toontown-click.de/sig2.png

Offline

 

#3 2011-11-26 11:56:20

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Pausing sounds

Unfortunately, no.  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-11-26 12:19:22

CheckItNow12
Scratcher
Registered: 2011-05-07
Posts: 1000+

Re: Pausing sounds

^ ^

But that could be a Scratch Suggestion.


http://i992.photobucket.com/albums/af47/NicolBolas_Alara/Doctor%20Who/raincry.gif

Offline

 

#5 2011-11-26 15:04:34

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Pausing sounds

No, there isn't.


Why

Offline

 

#6 2011-11-26 21:46:19

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: Pausing sounds

Unfortunately, there isn't a pause block, but there are several alternatives. You could mute the sound by setting its volume to 0% (it's under the sound category), or simply stop the whole sound, and restart it later.

Last edited by silvershine (2011-11-26 21:46:28)

Offline

 

#7 2011-11-26 22:32:04

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Pausing sounds

Theoretically, there is.  It would just take some time to start playing again.

First, check to see how long the song is.  Then use these:

set volume to 100%
set "length so far" to 0
play sound "sound"
broadcast "start timer"
set sound playing to 1

When I receive "start timer"
forever if "sound playing"=1 and "length so far"<"length of song"
wait .1 second
change length so far by .1

When P clicked
stop all sounds
set "sound playing" to 0

When S clicked
set volume to 0%
play sound "sound"
wait "length so far" seconds
set volume to 100%
set "song playing" to 1

Last edited by SJRCS_011 (2011-11-27 13:10:48)


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

Board footer