Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Art on November 23, 2005, 09:40:34 PM
-
Is there any way to precache entire music file, like LoadSound function ?
I use Game.PlayMusic() method to play music in my game, but when i change scene, if loading takes a little bit long - fewlast seconds of music loop, and then, after scene is loaded - it becomes ok....
I'd like to avoid this "effect" :)
-
No, it's not possible at the moment. You'd have to limit the amount of data being loaded (you must be loading a lot of data, right?) or turn off the music on scene transition.
I could increase the size of the music buffer though.
-
Hi Mnemonic. Good to hear you again :)
yes,right. I precache all scene data on loading...
How could we increase buffer size? Another exe or some option in registry ?
-
And one more question about music:
Is it possible not to stop playing music when i call LoadWindow from scene
For example, i'd like to continue currently playing music when user pushes ESC to go to main menu...
-
How could we increase buffer size? Another exe or some option in registry ?
I'll have to make a modification to the engine, perhaps making the sound buffer size controllable from a script.
-
And one more question about music:
Is it possible not to stop playing music when i call LoadWindow from scene
For example, i'd like to continue currently playing music when user pushes ESC to go to main menu...
You can add:
PAUSE_MUSIC = FALSE
to the window definition to achieve this.
-
Tnx, it worked!
About music chaching, i think, i'll pause the game between sceens
Anyway, controlling this value from the scripts would be a nice feature, imho...