PDA

View Full Version : MP3 Object - Seek error


midlander
10-20-2003, 04:27 PM
I have placed several buttons on a page with simple code.
MP3.Load (%MySong.mp3%)
MP3.Play
Works fine, but on button 3 the code is:
MP3.Load (%MySong.mp3%)
MP3.Seek(15)
MP3.Play
If the first button I click is number 3 then I generate an error Seek is too large for MP3.
However if I click and begin playing any other song then click button 3 it works.

Im confused, help?

TJ_Tigger
10-21-2003, 08:07 AM
It might be that your mp3 has not loaded fully before you try to seek. If you put a sleep 1 after the MP3.load action and then seek see if that helps.

Tigg

midlander
10-24-2003, 10:01 AM
Thanks, the sleep command seems to have done the trick.:p

element78
10-24-2003, 01:32 PM
If i were you, I'd give it a 2 second sleep to assure it works on slower systems as well. :cool:

-Adam

midlander
10-24-2003, 02:45 PM
It just so happens that was exactly what I did, used a 2 second delay. Have not gotten the error again.

Thanks:)

Corey
10-24-2003, 02:56 PM
I wish my brain had a 2 second sleep function. I could nap during page loads and accumulate massive amounts of sleep daily.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

TJ_Tigger
10-24-2003, 04:16 PM
Corey you just need a self bobbler to pause for those times. Variable delay bobbler would be good.

Corey
10-24-2003, 04:32 PM
Yeah sure a good old VDB, why didn't I think of that? I'll be like one of those wine cup dipping birds. Ploonk, type-type-type, Ploonk, type-type-type...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)