It is currently Tue Nov 21, 2017 6:48 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Nov 21, 2017 3:22 pm 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1462
I'd like to put the music and sound effects for FamiTone into different banks because one bank will probably not be enough for my new soundtrack and I don't want to mirror the sound effects in every music bank.

Since I don't know much about music drivers, I need to ask:

Is it a mundane issue to switch the bank in the FamiToneUpdate function because processing music and processing sound effects are clearly separated?
Or would this be more complicated because variables that point to music and sound are used in a mix?

For example, at the start of the FamiToneUpdate function there's this piece of code:
Code:
   lda FT_SONG_SPEED      ;speed 0 means that no music is playing currently
   bmi @pause            ;bit 7 set is the pause flag
   bne @update
@pause:
   jmp @update_sound

@update:

So, would it be enough to switch to the sound bank right before the actual @update_sound: label? (The music bank is of course already set before the function gets called.)
Or wouldn't this work because variables that point into the music ROM are still referred after @update_sound:?

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group