BASIC

Author Topic: PLAYMUSIC() and continuous loop  (Read 1036 times)

Offline Alex_R

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
    • Axro Digital
PLAYMUSIC() and continuous loop
« on: 2011-Aug-31 »
Hi!!

In my game I'm using PLAYMUSIC "Music.mp3", TRUE to play my music in the background in a continuous loop. But in my PC the music stops, and suddenly (in an odd random time) it starts again. And when it starts the game loads again the full mp3 freezing the game one or two seconds.

The PLAYMUSIC() command is at the beggining of the main code, outside of the While/Wend code. If I put it inside always testing ISMUSICPLAYING() I resolve the stop in random time but the programme still freezes and I don't get either the continuous loop music (without any millisecond stop).

Any suggestions?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10715
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: PLAYMUSIC() and continuous loop
« Reply #1 on: 2011-Aug-31 »
oops. :(

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: PLAYMUSIC() and continuous loop
« Reply #2 on: 2011-Aug-31 »
Yeah, I posted this a while back. My PC game would stop after the 1st loop, but Pre and iPhone worked fine. Because I couldn't care less about the PC market I didn't push it.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.