src << sound('whatever.mid',1)
spawn() src << sound('whatever.mid',1)
When I play midis for background music, set to loop, I am having a bit of a problem. Whenever it switches music, you lag for a second or so. Now I know if the sounds arent all downloaded youll have some lag downloading the songs, but even after everything downloads, you have some lag. Just testing locally on my PC, it lags for about a second when playing sounds. I've tried both methods above, with and without the spawn(). I've also tried clearing the sound before playing the next file: sound(), it doesn't help. When I comment out the line with sound, it doesn't lag. Now, these aren't incredibly huge midis, 8k -25k, but they all have some lag. Is there something I'm missing? Something I can do differently? I've played other games that do what i'm doing and see no lag between switching sounds. Thanks
-Lutelian
Also, are you doing it like..
world<<sound('whatever.mid')
or
Also, it can also depend on the size, obusually, it would take alot longer for a 10 minute mid than a 50 second one.
Try clean compiling, that could be your problem, but that's just really an assumption.