|
Post by soulgame on Mar 2, 2018 15:09:52 GMT
Hi there,
I'd like to know if there is a proper way to achieve this with Master Audio: I have two scenes, town and map, each with its own music. Basically I don't want to start the music from the beginning each time I navigate from one to another. Instead I'd like the music to be resumed to the position it was when I left. Example: - I'm on the map (map music plays) - I leave map (map music stop at 1min30) - I go to town (town music plays) - I go back to map (map music start at 1min30)
Is that possible using MasterAudio ?
Thanks for your help
|
|
|
Post by DarkTonic Dev on Mar 2, 2018 17:15:49 GMT
Yep, very easy. Go to the Playlist and change the "Song Transition Type" field to "New Clip From Last Known Position".
|
|
|
Post by soulgame on Mar 2, 2018 18:06:54 GMT
Awesome! I did search in those settings, not sure how I missed it :s Currently it's not working tho. The songs keeps starting at the beginning. Here is what I'm doing: // When entering map MasterAudio.ChangePlaylistByName("PlaylistController1", "map");
// When entering town MasterAudio.ChangePlaylistByName("PlaylistController1", "town");
And here is the MasterAudio playlist config:  Am I not using it properly?
|
|
|
Post by DarkTonic Dev on Mar 2, 2018 18:27:13 GMT
The songs must be in the same Playlist, that's why. If you change to a new Playlist, the last known positions are lost.
|
|
|
Post by soulgame on Mar 3, 2018 23:08:21 GMT
Awesome, thanks for clarifying that. I now have all track in the same playlist and it works perfectly!
|
|
|
Post by DarkTonic Dev on Mar 3, 2018 23:35:06 GMT
No problem, we're always here!
|
|
DwinTeimlon
Guest
Posts: 0
|
Post by DwinTeimlon on May 6, 2022 11:58:28 GMT
Hey. I have lot of different playlists like Story, Combat, Tension, Building etc. all with a variety of songs. Unfortunately it's still not possible to call ChangePlayList and keep the last track position of the former playlist. So I either put all the songs in one playlist, which actually defeats the purpose of playlists or have multiple playlist controllers each one with a single playlist which I pause and unpause correct?
Do you plan to change this in the future or is by design?
Thanks
|
|
|
Post by DarkTonic Dev on May 6, 2022 14:27:15 GMT
We do not plan on changing that, it's a limitation of the code, the crossfade part coupled with unloading the previous song. If you're not using shuffle, then why can't you have all songs in one playlist? Multiple Playlist Controller is a good way to handle it though, if it works for you.
-Brian
|
|