Delaying Main loop and Timer until media is loaded

BlitzMax Forums/BlitzMax Beginners Area/Delaying Main loop and Timer until media is loaded

Amon(Posted 2006) [#1]
I'm noticing timing issues with my intro screen because the intro screen starts while the ogg tune is still loading.

How can I get around this?

Would it be best not to incbin ogg music?

Thanks :)


Grisu(Posted 2006) [#2]
It doesn't matter if you incbin it or not.
It's just that the oggloader insn't that fast.
I don't know how your intro is presented, but

1. Load the ogg tune
2. Load all media
3. Create Window
4. Playsound + DrawImages


Grey Alien(Posted 2006) [#3]
My game framework loads music and plays it yet there is no clash. Weird, are you starting the timer BEFORE the ogg has loaded or something? See when I load an .ogg as a sample, it waits until that is done before program execution commences.