|
Post by Metagod on May 6, 2014 9:24:25 GMT
Hey, I was wondering if there's a way to create scene specific playlists in Master Audio so as to avoid having unnecessary audio files in all the scenes. Something like dynamic groups. Awaiting reply.
Thnks
|
|
|
Post by DarkTonic Dev on May 6, 2014 15:58:18 GMT
Yes, the Dynamic Sound Group Creator prefab allows you to set up per-Scene playlists as well. I would like to rename the DSGC prefab soon because it does more than that name implies.
However, it's normally best to set all non-layered music as streamed, because that takes up less memory (near zero), so don't be afraid to set up multiple playlists in the normal MA prefab.
|
|
|
Post by Metagod on May 8, 2014 7:21:54 GMT
I m trying to use dynamic playlists, but for some reason m not able to get it working, can you create a quick tutorial on how to use dynamic playlists ?
Plus i dnt see any option to create playlist controller from DSGC.
|
|
|
Post by DarkTonic Dev on May 8, 2014 15:59:48 GMT
You cannot create a Playlist Controller dynamically. Your Playlist Controller(s) should already exist from the Bootstrapper Scene. Then in each other Scene, you set up 1 or more dynamic Playlists. To use them, you have to assign the Playlist to a Playlist Controller. EventSounds can do this with Change Playlist command.
|
|
|
Post by Metagod on May 10, 2014 9:25:27 GMT
Hi,
Let me explain you my scenario, i cannot keep a single playlist throughout the game, its a audio heavy game. Now i have a playlist for menu, Playlist "A", with platlist controller "PLA", in the game scene i have a dynamic playlist defined Playlist "B", when i switch scene i keep the same playlist controller "PLA" ,and try to switch to playlist to "B" in the start function of my audio script, using the function call : m_controller.ChangePlaylist("B"); It always returns an error that playlist "B" cannot be found, although i can see the playlist"B" in master audio prefab.
So i can't assign the playlist, since i can't find it even though its there.
Please reply back with a detailed way of using dynamic playlists correctly.
Thanks
|
|
|
Post by DarkTonic Dev on May 10, 2014 19:52:05 GMT
Looking at the code, I think if you change line 46 of DynamicSoundGroupCreator.cs to this, it will work:
void OnEnable()
Is says "void Start()" right now. I believe what's happening is the dynamic playlist is created just after your code is called. This should fix it. I reproduced this bug in on my computer and this fixed it. This fix will be in the version update.
|
|