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

#1 2011-02-26 22:08:19

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Half-second delay when playing sounds?

In a game I'm making, a short "thud" sound is supposed to play as soon you hit a wall. Unfortunately, by the time the sound plays, I've already started off in another direction!

So I opened it in Audacity, thinking there was a delay in the sound itself. But there was nothing - it begins the instant it's played!

I even calculated the time it takes between when the block activates and when the sound plays - 0.5 seconds. Now, I know Scratch is slow, but this sound is only a kilobyte. How does that even happen?

I tried different sounds and file types, with the same results. So please fix this problem for Scratch 2.0 - I know sound effects aren't necessary, but this project would be so much cooler  sad  (plus, how can you have a programming language where sounds delay that badly?)

Last edited by hmnwilson (2011-02-26 22:11:34)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#2 2011-02-26 22:18:32

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

Re: Half-second delay when playing sounds?

You know, it seems like there's a small delay like this for everything, but it's really hard to tell. Maybe it's just me?  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

 

#3 2011-02-26 22:38:00

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Half-second delay when playing sounds?

Harakou wrote:

You know, it seems like there's a small delay like this for everything, but it's really hard to tell. Maybe it's just me?  hmm

A lot of things delay in Scratch, but not this bad. A "repeat until" block can go through at least 7-8 cycles before a sound will play.

Last edited by hmnwilson (2011-02-26 22:39:02)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#4 2011-02-26 22:41:52

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

Re: Half-second delay when playing sounds?

hmnwilson wrote:

Harakou wrote:

You know, it seems like there's a small delay like this for everything, but it's really hard to tell. Maybe it's just me?  hmm

A lot of things delay in Scratch, but not this bad. A "repeat until" block can go through at least 7-8 cycles before a sound will play.

That sounds like more than half a second to me...


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

 

#5 2011-02-26 23:00:48

OldWheezerGeezer
Scratcher
Registered: 2010-06-04
Posts: 500+

Re: Half-second delay when playing sounds?

Yeah, Scratch has that problem. Though it might get fixed in 2.0  smile

Offline

 

Board footer