A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Assets and Asset Store' started by dark_tonic, Jan 28, 2013.
My game involves needing to play the same sound from multiple different items at the same time.
The player places blocks which do things. Like a pusher block that extends out an arm to push the block next to it. When it does so it plays its arm extending sound. But there could be numerous pusher blocks placed around that are all extending their arm at the same time so you can have the same sound coming from several locations at the same time (actions are synchronised, so every block acts and plays its sound at the same time, the start of each sound is not spread out).
At the moment i'm just using a simple free sound manager which is fine when there's only one or 2 but starts getting glitchy when several are placed next to each other.
Would master audio be able to handle doing this sort of thing more gracefully (playing the same sound from several sources at once) out of the box?
yes. and you will place a limit on how many can play at the same time. the default max is 1 but you adjust to whatever you need.
I have a sound question that may be a unity limitation. Clean recordings played in the Unity editor sound as if reverb has been added, yet I use none. I can play just the sound file. Clean. Play the same sound in the unity editor via a unity audio source and I hear reverb. Do you know what this is? I own master audio, but have not brought it into the project yet. Can master audio fix this?
It must be in a reverb zone or something causing that.
Master Audio won't fix it because we just use Unity audio entirely under the covers. We just make it manageable and trackable and "no code needed". It won't change functionality or bugs.
Solved: One of the assets in my project placed an Audio Reverb Filter on my main camera.
Aha! Yeah I figured it was something.
I'm trying to subscribe to the 'SongChanged' custom event. When I implement the 'ICustomEventReceiver' interface, I don't see any way to specify what parameters I want sent to the message receiver (it seems RecieveEvent just takes the customEventName and the transform position). In the documentation it mentions 'A MusicSetting object containing everything about the song is passed to the SongChanged event handler', but I can't figure out how to wire anything up to the SongChanged event which allows the MusicSetting object to be passed in.
Any advice on how this is meant to work?
Edit - I figured most of it out. Geez isn't that always the way, spend hours trying to solve it, then make a post and figure it out within the next 5 minutes. Turns out it's not the custom events which the docs refer to, but PLAYLIST events that have the answer, a bit confusing: http://www.dtdevtools.com/docs/masteraudio/TriggeringAudioCoding.htm#PlaylistEvents. However it passes in a string of the song name instead of the MusicSetting object the docs refer too, so I'm not sure what's going on there.
Edit Edit - The docs are a bit out of date there is seems, the new method signature does indeed pass in the MusicSetting object! Well we got there in the end.
Ok, now please let me know which docs are out of date for what, because I try my best to make sure everything is always up to date, including the API and the documentation website. Is it the picture on that linked page above? Looks like it. I just updated it to show both parameters. The API page looks correct: http://www.dtdevtools.com/API/maste...roller.html#a847a3695b9d70fb513778f82556bab75
Sorry about that.
And do let me know which parts were confusing so I can go read it again a couple times and hopefully fix the docs for future users!
Thanks for looking into that, the API looks correct now. I hope my post didn't come off as negative towards master audio. The support you put into this asset is absolute platinum tier!
The bit I found confusing was in the docs when it mentions:
So if you click on the PlaylistController in the Unity hierarchy you see all the custom events at the bottom like "Initialized Event", "Song Changed Event", which then let you type in a custom event name. This made me assume then that I must have to hook up a custom event somewhere, so I went to the custom event docs and that's where I got lost.
Having a link in that quote that goes to the Playlist Events page (ie, the delegate type) so that people don't get it confused with custom event type might help.
Thanks again Brian.