PlayCity and subsongs

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30371
    gurneyh
    Participant

    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?

    #30372
    Admin
    Keymaster

    It 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.

    #30373
    gurneyh
    Participant

    Thank 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 🙂

    #30374
    Admin
    Keymaster

    There 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.

    #30375
    gurneyh
    Participant

    Indeed, 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. 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.