Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2003
    Location
    Jacksonville Alabama
    Posts
    10

    Grin MP3 Object - Seek error

    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?

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    Re: MP3 Object - Seek error

    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
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Oct 2003
    Location
    Jacksonville Alabama
    Posts
    10

    Thumbs up Thanks

    Thanks, the sleep command seems to have done the trick.

  4. #4
    Join Date
    May 2003
    Posts
    130

    Talking

    If i were you, I'd give it a 2 second sleep to assure it works on slower systems as well. :

    -Adam

  5. #5
    Join Date
    Oct 2003
    Location
    Jacksonville Alabama
    Posts
    10

    I agree

    It just so happens that was exactly what I did, used a 2 second delay. Have not gotten the error again.

    Thanks

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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

  7. #7
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Corey you just need a self bobbler to pause for those times. Variable delay bobbler would be good.

  8. #8
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts