Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Drax on April 06, 2004, 09:14:31 AM
-
Another problem at another morgning ;)
I've tryed to setting the globalsoundvolume (musik and speech, too)
but nothing happens. At the start of the game script im setting the volume in both extrems 10 and 90 but the sound in the scene alsways played with the same volume.
I've set the GlobalMusicVolume, and in the scene.init the music is played by PlayMusic.
I have all three Volumes in my properties menu but it dosn't work there too.
DraX
-
Hm, you'll have to be more specific than that (code sample etc.). I'm very positive the volume functions work as they should. There's probably some scripting misunderstanding :)
-
ok.
Here the game.script (at the top)
Game.SetGlobalMusicVolume=60;
Game.SetGlobalSFXVolume=80;
Game.SetGlobalSpeechVolume=100;
And in the scene_init.script
Game.PlayMusic("scenes/insel/loopinsel.ogg");
I don't think there's other code influences the music.
-
Ok, that's the problem. Those are the methods, i.e. you have to call something like:
Game.SetGlobalMusicVolume(60);
etc.
-
uppsss.... ::)
that's ambarrassing.
(But for my excuse, a minute before programming that code, i've set the subtitelspeed and that's a var and no method)
thx