playMaker

Author Topic: Sound objects to loud  (Read 3177 times)

turritom

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Sound objects to loud
« on: March 12, 2015, 01:56:17 AM »
hi,

i used often the play random sound action from playmaker ..here unity creates a audio object who plays the sound. in unity 5 the audio range are to big (500m) and the sounds are to loud . Are there a global option for this to change the range of this audio source ???

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Sound objects to loud
« Reply #1 on: March 12, 2015, 04:07:57 AM »
Edit>Project Settings>Audio

The help docs explain what all the options actually do. Also the audio source component has options for rolloff and 3d sound.

turritom

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Sound objects to loud
« Reply #2 on: March 12, 2015, 07:32:01 AM »
yes i will try this with the rollover from the options

but the audio source component is in a object that was create by the playmaker action "play random sound" and this object i can not affect i think.

turritom

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Sound objects to loud
« Reply #3 on: March 12, 2015, 07:55:42 AM »
okay i think i have found the problem

in unity 4 the audio source have standard pan setting on 1  ..this means that the sound is 3d and the volume is addicted to the distance

https://dl.dropboxusercontent.com/u/514672/unity4pan.JPG

in unity 5 the standard setting is on 0 and means this is a 2d sound an its totally independent from the distance

https://dl.dropboxusercontent.com/u/514672/unity5pan.JPG

and here are the problem i see ..i cannot change this to standard 1 i think .. and i have no access on the audio objects that create by "play random sound"

i can ask a friend of mine to change the playmaker action for me :)
(he have also make a Round Float action for me) ;)

sorry for my english

turritom

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Sound objects to loud
« Reply #4 on: March 13, 2015, 05:34:06 AM »
yeah we have found a solution and rewrite the playrandomsound.cs

now it works in 3d space and the spatial blend can set with the slider or a float value

feel free to use it ..and thanks to my friend Ntropi for the Script :)

terrorOfNewDelhi

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
Re: Sound objects to loud
« Reply #5 on: March 24, 2015, 11:10:01 PM »
Nice, this is useful thanks.

turritom

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Sound objects to loud
« Reply #6 on: March 26, 2015, 01:44:35 AM »
You are welcome!

magique

  • Playmaker Newbie
  • *
  • Posts: 20
    • View Profile
    • Magique Productions, Ltd.
Re: Sound objects to loud
« Reply #7 on: October 10, 2015, 02:25:05 PM »
I know this is an old post, but I found it and the script that adds the Spatial Blend parameter is a great addition and worked for me. I just downloaded the latest Playmaker and it doesn't have this feature so the updated script helped me to resolve the same issue.

So, why isn't this part of the latest Playmaker? Will it be included by default in a future release?