So volume can be a value from 0 to about 300. If it's set to -111 that indicates to use the default of 100? To retain the selected volume setting in-game between rooms/scripts, a global in main sounds right to me.
Cool, got it. That explains the -111 I see all through the script.
I'm a little confused still. In the properties I see the following (In Studio Script, which I'm using for BA 1):
(class sciAudio
(properties
command -111
fileName -111
soundClass -111
volume 9000//-111
fadeInMillisecs -111
fadeOutMillisecs -111
loopFadeInMillisecs -111
loopFadeOutMillisecs -111
loopCount -111
conductorFile -111
playXFadeOutMillisecs -111 // used only for playx command
)
I've set Volume to -111, -1, 0, 300, 9000 and at no time did it make any difference to the sound volume. I'm assuming it's checked and set elsewhere also, but all I can find is:
(if(<> volume -111)
StrCat(@msgBuf " volume ")
StrCat(@msgBuf volume)
StrCat(@msgBuf "\n")
)
And I'm just not sure what this does.