What is Arkos Tracker? › Forums › Arkos Tracker forum › General discussion › PlayCity and subsongs
- This topic has 4 replies, 2 voices, and was last updated 3 years, 11 months ago by gurneyh.
-
AuthorPosts
-
December 28, 2020 at 10:16 pm #30371gurneyhParticipant
In my current project, I export a song containing different sub-songs in akg format. Everything works perfectly.
However, for one of the sub-songs that is intended for the PlayCity, I have no choice but to export in AKY format. This format only allows individual exports. So I’m not sure how to proceed.
Export all non-PlayCity sub-songs in AKG format, and only the sub-song intended for the PlayCity in AKY format?In this case I have to use 2 different players. s and management during the game is more complicated.
Or export everything in AKY format.
What do you think is the best solution?
December 28, 2020 at 11:00 pm #30372AdminKeymasterIt all depends on how much memory and CPU you have. AKY is much faster, but costs more memory. For PlayCity you have no choice but use AKY (6 or 9 channels in AKG would be really slow anyway).
So my advice is count how many bytes are taken if you use only the AKY, then compares with if you’d use the AKY only for the PlayCity songs, plus AKG with the other songs.
If your project allows it, load only one player at a time with its possible related songs.
December 29, 2020 at 8:31 am #30373gurneyhParticipantThank you for the answer.
Concerning the memory place, I think it will be ok because I have for the moment almost a bank for music + players.Loading one player at a time is not an option because it is within the same level that I change music several times (main theme, power up, lost life, game over).
For this reason, it is also complicated to change the player.
I think I will test with everything in AKY. The only boring point is that you can’t export all the sub-songs in one pass, and just change by passing the sub-song index.Have a good day 🙂
December 29, 2020 at 6:46 pm #30374AdminKeymasterThere is simply no subsong with AKY, because it would be pointless. As the music take more memory, keeping all the subsongs in memory would be needed to share the data. It would be too large!
One bank for the music and the players will probably NOT be enough for the AKY player, watch out! Unless they’re not too long/complicated.
However, there shouldn’t be anything complicated to switch from one player to another. Simply have an indirection layer in your code, instead of directly calling the player, call an intermediate code that will choose, according to the current song, what player to call.
December 30, 2020 at 7:52 am #30375gurneyhParticipantIndeed, using a level of indirection is probably the right way.
And it implies few modifications.Thanks for the answers, it takes away a lot of doubts. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.