Hi,
I made a millwheel loop for the windmill and the windgenerator. Now as the wheel's turning speed varies, I want the sound volume to vary accordingly. The problem is, when I start the loop like this for example:
and then want to change the volume to 100:
the function returns
I made a millwheel loop for the windmill and the windgenerator. Now as the wheel's turning speed varies, I want the sound volume to vary accordingly. The problem is, when I start the loop like this for example:
Sound("millwheel_loop", false, 50, nil, 1);
and then want to change the volume to 100:
Sound("millwheel_loop", false, 100, nil, 1);
the function returns
false
and nothing happens. So is there a trick to do it or is this not possible? Otherwise I would need to have multiple sounds.
What happens if you stop the sound and re-play it? (With the loop parameter as 0 or -1)
SoundLevel was removed a long time ago, since somebody seems to have thought that Sound offers the same functionality (it does not, there is a difference between same sounds on a single object with Sound()).
Well, you could open a feature request to implement a function like SetSoundVolume in the bugtracker and assign it to me then. It would be relatively trivial to implement in the engine.
Is it possible to have something to set the volume for all sounds? Something like
I found a nice underwater-sound and that together with lowering the sound volume would make up a really cool atmosphere for diving.
SoundVolume(iVolume, iPlayer)
? (And ResetSoundLevel())I found a nice underwater-sound and that together with lowering the sound volume would make up a really cool atmosphere for diving.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill