playMaker

Author Topic: Set game volume action doesn't work  (Read 619 times)

zorranco

  • Junior Playmaker
  • **
  • Posts: 50
Set game volume action doesn't work
« on: May 11, 2022, 06:24:22 AM »
My game doesn't have music per se (just in a few spots, it's mandatory).

Therefore there are no mixers (all volume clips are manually adjusted, so for example footsteps sound quieter than other sounds to not disturb the player too much while walking etc).

You can put "Set game volume" and "Audiolistener set volume" to zero and the game still plays sounds.

I've tried to acces Audiolistener.volume with "set property" but the property volume seems to not be exposed.

Do I need to use mixers to adjust the master volume?
« Last Edit: May 11, 2022, 06:29:49 AM by zorranco »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7624
    • jinxtergames
Re: Set game volume action doesn't work
« Reply #1 on: May 11, 2022, 08:20:37 AM »
Hi.
With the audio mixer it is set between -80(db) - 20(db) not 0 - 1
So maybe "Set game volume" works the same.
if not its probably better to use a mixer.

if you have music as well its probably better to use it anyway and have 3 main groups (Music/Ambient/Sfx)

zorranco

  • Junior Playmaker
  • **
  • Posts: 50
Re: Set game volume action doesn't work
« Reply #2 on: May 11, 2022, 12:17:07 PM »
I understand that this action modifies the global audio value, wich is a float between 0 and 1.



However, if I change it manually in the menu, it doesn't work either, dunno why.

I suppose I will have to move all my audio sources to mixers, but there are dozens of them. Tons of work :D
« Last Edit: May 11, 2022, 12:18:51 PM by zorranco »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7624
    • jinxtergames
Re: Set game volume action doesn't work
« Reply #3 on: May 11, 2022, 10:11:54 PM »
Hi.
For a fast way to find your audio sources in scenes, search t:AudioSource in the hierarchy.

zorranco

  • Junior Playmaker
  • **
  • Posts: 50
Re: Set game volume action doesn't work
« Reply #4 on: May 12, 2022, 03:29:45 AM »
I was searching just for this...many thanks for the help  :)