Post by matthue on Nov 25, 2016 8:26:39 GMT
Hey
Because we are porting our game Shift Happens to PS4 and Sony updated their SDK we had to switch to Unity 5.4.2.f1 from Unity 5.2.2.f1.
Now we have many levels that have a playlist with 2 Songs in them, with one that has an intro and one that loops.
So there's only one playlist controller in the game and we didn't change anything with the Unity switch but now the game always skips the intro track of the playlist, while putting out the following console warning (yellow):
Now everytime when I try to even manually switch the track to the intro in the master audio while the scene is running, I get this warning and it immediately switches back to loop.
The setup looks as follows:
When I uncheck "Loop Playlists" the warning message gets spammed while the scene is running.
With the old version of Unity everything works perfectly.
PS: I am not a coder, however I am making this thread because our coder was busy but he asked me to put it up.
Hope you can help me. let me know if you need more information!
Because we are porting our game Shift Happens to PS4 and Sony updated their SDK we had to switch to Unity 5.4.2.f1 from Unity 5.2.2.f1.
Now we have many levels that have a playlist with 2 Songs in them, with one that has an intro and one that loops.
So there's only one playlist controller in the game and we didn't change anything with the Unity switch but now the game always skips the intro track of the playlist, while putting out the following console warning (yellow):
Dynamically unloading a sound that hasn't finished loading yet. If you see this message a lot, some scripts may be doing too many dynamic load/unload operations which will negatively affect performance.
UnityEngine.AudioClip:UnloadAudioData()
DarkTonic.MasterAudio.AudioUtil:UnloadNonPreloadedAudioData(AudioClip) (at Assets/Resources/sound/DarkTonic/MasterAudio/Scripts/Utility/AudioUtil.cs:81)
DarkTonic.MasterAudio.PlaylistController:CeaseAudioSource(AudioSource) (at Assets/Resources/sound/DarkTonic/MasterAudio/Scripts/Utility/PlaylistController.cs:1383)
DarkTonic.MasterAudio.PlaylistController:FinishLoadingNewSong(AudioClip, AudioPlayType) (at Assets/Resources/sound/DarkTonic/MasterAudio/Scripts/Utility/PlaylistController.cs:1183)
DarkTonic.MasterAudio.PlaylistController:PlaySong(MusicSetting, AudioPlayType) (at Assets/Resources/sound/DarkTonic/MasterAudio/Scripts/Utility/PlaylistController.cs:1160)
DarkTonic.MasterAudio.PlaylistController:PlayTheNextSong(AudioPlayType, Boolean) (at Assets/Resources/sound/DarkTonic/MasterAudio/Scripts/Utility/PlaylistController.cs:713)
DarkTonic.MasterAudio.PlaylistController:PlayNextOrRandom(AudioPlayType) (at Assets/Resources/sound/DarkTonic/MasterAudio/Scripts/Utility/PlaylistController.cs:1033)
DarkTonic.MasterAudio.PlaylistController:Update() (at Assets/Resources/sound/DarkTonic/MasterAudio/Scripts/Utility/PlaylistController.cs:416)
Now everytime when I try to even manually switch the track to the intro in the master audio while the scene is running, I get this warning and it immediately switches back to loop.
The setup looks as follows:
When I uncheck "Loop Playlists" the warning message gets spammed while the scene is running.
With the old version of Unity everything works perfectly.
PS: I am not a coder, however I am making this thread because our coder was busy but he asked me to put it up.
Hope you can help me. let me know if you need more information!