tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Aug 24, 2016 9:56:00 GMT
I have got an error, please look at print screen. I have created playlists, audiosource and other stuff. I was missing something, but I do not know what. Give me a hint please.
|
|
|
Post by DarkTonic Dev on Aug 24, 2016 16:04:45 GMT
I'm not sure why you created an Audio Source. That is not supported and Master Audio will not know anything about it. In fact, Master Audio ships with a Master Audio Sound Upgrader window that will delete all non-MA Audio Sources in the Scene.
I assume that the PlaylistController-Sluza-1 (and 2) are Playlist Controllers created from the Master Audio Manager window? Are you on the very latest version of Master Audio? If not, please upgrade and let me know updated line numbers for your error (Console window).
Also, make sure to show me the very first error (topmost) in the Console window. That may have a clue.
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Aug 24, 2016 21:03:31 GMT
I'm totally new in Unity world, for sure I made some strange logic error. Yes, I have the latest version of MasterAudio and PlaylistController-Sluza2-1 and PlaylistController-Sluza2-2 this are playlist controllers. And below are the very first errors. Hope this will help in finding source of my problem.
|
|
|
Post by DarkTonic Dev on Aug 24, 2016 23:25:54 GMT
I have no idea. Click on each Playlist Controller and show me what the Inspector looks like for each.
Can you please delete all the Audio Sources you created?
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Aug 25, 2016 6:34:26 GMT
Thanks for hints! I removed all audiosource with the exception of those from the playlists, because Unity does not allow it. It didn't help. And here are the settings in the Inspector:
|
|
|
Post by DarkTonic Dev on Aug 25, 2016 15:30:22 GMT
No, your Playlist Controllers are screwed up. They should each have 2 Audio Sources.
Delete them and recreate them, hopefully it will work then.
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Aug 25, 2016 22:46:36 GMT
Suuuper, wonderful great! It works! Thanks!
Confess without beating, it was me, I screwed up.
I am a minimalist, I thought it was software error, so I removed the duplicate audio source.
:-)))
I have two puzzles more.
Please explain:
1. How to random play only one sound from the particular playlist?
2. How to play the sounds one by one?
For example:
Now, after the entrance to the point "Sluza2" I have actions:
- Master Audio play sound
- And second action is: Master Audio playlist start by name
Efect is: when a player touches the "Sluza2" both actions start to play at the same time, but I want to arrange sounds in the exact order to create story teller.
I would like to make some sounds random in the story for every point of where enters the player. Hence these my questions.
|
|
|
Post by DarkTonic Dev on Aug 25, 2016 23:36:01 GMT
Yeah 2 Audio Sources are needed for crossfading.
To play a random song, you use custom action "Master Audio Playlist Clip Random". If you want to wait until a sound effect is over to do something else, you can instead use the custom action "Master Audio Play Sound With Event", which plays a sound effect, then waits until it's finished and fires an event. You use the event in your FSM to go to another state where you play the song.
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Aug 26, 2016 12:49:04 GMT
Thanks! Master Audio with Playsound event is great! I entered the name of the group but Variation Name I had left empty and thus I have a random sound, and then at the end of playing player pass further. Jupi! :-)
And how to do: the entire playlist is played back and then move on to the next event?
|
|
|
Post by DarkTonic Dev on Aug 26, 2016 15:52:35 GMT
You would need to write your own custom action for that. There is currently only an event for "song finished" but not "playlist looped".
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Aug 26, 2016 16:50:10 GMT
It is beyond my reach. But I can get around this by setting a sound one after the other with the transition to the next event. Thanks for reply!
|
|
|
Post by DarkTonic Dev on Aug 26, 2016 18:02:21 GMT
Ok cool.
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Aug 26, 2016 18:48:32 GMT
BTW, how much it would cost to order such action from you?
Or maybe you add it at the next update? :-)
|
|
|
Post by DarkTonic Dev on Aug 26, 2016 19:37:30 GMT
I get asked that from time to time. Let's just say that it would cost more than the plugin itself. If you want to know the exact amount, PM me and we'll discuss. I have put it on the roadmap but it probably won't make it in for several updates since I'm working on finishing up the Multiplayer add-on (separate plugin).
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Aug 27, 2016 8:38:02 GMT
I will wait :-D My project is a pure hobby, I do not count on it that I earn.
|
|