SetMusicMasterVolume(0); Makes the music quiet but not off?

Started by YotamElal, Sat 14/05/2005 07:21:00

Previous topic - Next topic

YotamElal

how ca I use SetMusicMasterVolume(0); to make the music at volume 0??

I tried the command in differnet places & It doesn't silent the music.

I can't use stopmusic(); cuz I want a fadeout the music.

Ashen

I've noticed this too - it's because SetMusicMasterVolume() is slightly affected by the 'Music volume adjustment' setting of the room you're in (i.e Quietest, Quieter, Quiet, Normal, Loud, Louder, Loudest). Basically, to turn the music right off, you also have to call SetMusicVolume (-3), but keep in mind it'll be reset when you change room.
I know what you're thinking ... Don't think that.

Goot

SetMusicValue ranges from 3 to -3 where 3 is loudest and -3 is silent.


MrCheminee

*Nevermind, solved my problem*

MrCheminee

Or so I thought.

I want to change the slides so they will silence sound and music when they are on zero, but I just can seem to get this working... Anybody any tips on this matter?

Ethan D

#6
There are two types of vaules for volume

The Master volume which is in between 0 and 100 with a default value of 100

And then there is the room value which is between -3 and 3 with 3 being the loudest.
When the room is changed this is reset to 0 so the music would continue playing

If you want the music to stay completely off in all rooms have an if statement checking where the slider is at and if it is at 0 then in the before fadein on each room have the room value set to 0.  If that all makes sense.

EDIT:  I mean set the music value to -3.

MrCheminee

Yes and no, it kinda stange I have to do this on every room, but it works, so thank you. :)

Edit: Setting the value to -2 worked also(no music, when the slide is down), which I find rather strange, because then what good does the -3 value do?

Khris

You don't have to do this manually in every room...
Use the on_event function.

MrCheminee


SMF spam blocked by CleanTalk