playMaker

Author Topic: Can playmaker control audiomixer volume? <Problem Solved!>  (Read 900 times)

RapperCerberus

  • Playmaker Newbie
  • *
  • Posts: 11
Can playmaker control audiomixer volume? <Problem Solved!>
« on: September 10, 2021, 03:00:32 AM »
I just wanna make a slider to control BGM/soundeffect/voice volume. My audiomixer is already set up, but I don't know how to use PM to control its volume. I tried to drag audiomixer into PM editor window but it said no action found. And I searched Audiomixer on eco I just found "get/set Audiomixer float". Can these actions control audiomixer volume?

===================================================

Thanks to @600, with this OG's help, problem solved.
Btw for anyone wanna know how to get this done:
1, Create Audiomixer and different groups(like BGM, sound effect, voice...)
2, Get <Audio Mixer Set Float Value> action for your PM
3, Left click on the group you want, such like "voice" group. Find Attenuation/Volume on Inspector panel, and Right click on it. Select <Expose 'Volume (of voice)' to script>.
4, Find Exposed Parameters in Audiomixer window on the right-top corner. Click on it and change the name of the last exposed parameter, in this case, to <voice volume>(or any name you like).
5, Back to your PM, use <Audio Mixer Set Float Value> action,  and input the name of the last exposed parameter, AKA <voice volume>, and set the volume.

PS    this volume float is not percentage, it's dB value.
« Last Edit: September 13, 2021, 10:39:20 PM by RapperCerberus »

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Can playmaker control audiomixer volume?
« Reply #1 on: September 10, 2021, 04:14:23 AM »
I was just going to post something about the AudioMixer groups, that are a really GREAT thing to manage audio along the whole app.
I tried with the float variable but it didn't work. I think we need a new action in the ExoSystem  :-*

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Can playmaker control audiomixer volume?
« Reply #2 on: September 12, 2021, 04:59:01 AM »
Up!

RapperCerberus

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Can playmaker control audiomixer volume?
« Reply #3 on: September 12, 2021, 09:37:34 PM »
Yep. Hope they're working on it.

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 715
    • Flashing Lights
Re: Can playmaker control audiomixer volume?
« Reply #4 on: September 13, 2021, 03:32:21 AM »
Yes use the float action, have to expose parameter - info in the AudioMixer window upper right corner.
By selecting channel see inspector to expose.
Then add that in to the action.
Can do that for any channel, screenshot below, drop the channel in the mixer slot.

RapperCerberus

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Can playmaker control audiomixer volume?
« Reply #5 on: September 13, 2021, 10:11:58 PM »
It works! Thank you buddy!   o7