When my game changes track that its playing the game lags whilst the midi is loaded in. Is their a way to stop this happening. Would one of the Music objects thats around fix this. If so which one.
There isn't any way to stop this happening, you'd think by MMF they would have fixed that. Apparently, the latest MMF patch is supposed to stop this, but I haven't noticed any difference. So the answer would be no.
this isn't a bug. It's because the windows media control loads music directly from files instead of caching them somewhere.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
The process was running more than once, I was doin ga test by loading one midi in at the start of the frame and then using a key press to change the midi durin the game. I made it run once, it helped but the game still lagged.
The active x object wouldnt work, If i use it in a v-basic app it works fine. If i run it in mmf then i dont seem to have options to play tracks, it seems to be all about streeming media etc.... (unless im misssing somet).
I tryed loading 2 midis in at the start of the frame, then switching between them but it still lagged, i guess they arent caching themselves.
Jenswa says
"You can try to do the caching process yourself. Although i don't know if that's possible. Because most data is wiped when going to the next frame. i might be able to do the caching process myself"
I dont think thats possible but my game runs in pretty much one frame so if it is posssible maybe it would work within my game.
putting the comand to play the midi file in a fast loop just about halfs the time the game lags for, its not only about half a second, but its stilltoo much anyone any ideas at all?????