It is currently Sat Oct 20, 2018 2:15 pm

All times are UTC - 7 hours



Forum rules





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Sep 18, 2018 8:23 pm 
Offline

Joined: Mon Aug 27, 2018 7:33 am
Posts: 4
Hi!

I've converted a IT file and it generate two banks...

Do I need to control how to change between them or is it automatic?

Thank you guys!


Top
 Profile  
 
PostPosted: Sat Sep 22, 2018 2:27 pm 
Offline

Joined: Mon Aug 27, 2018 7:33 am
Posts: 4
hi guys,

I asked to alekmaul (the pvsneslib creator) and he said that it goes throug banks automatically.

You just need to set them in the beginning of the code... example:

if your song was converted in two banks, like this:

.bank 5
.section "SOUNDBANK0" ; need dedicated bank(s)

__SOUNDBANK__0:
.incbin "soundbank.bnk" read $8000
.ends

.bank 6
.section "SOUNDBANK1" ; need dedicated bank(s)

__SOUNDBANK__1:
.incbin "soundbank.bnk" skip $8000
.ends

you need to set the banks like this:

spcSetBank(&__SOUNDBANK__1);
spcSetBank(&__SOUNDBANK__0);

more details here: https://github.com/alekmaul/pvsneslib/i ... -423726329


Top
 Profile  
 
PostPosted: Sat Sep 22, 2018 3:11 pm 
Offline

Joined: Wed Jul 09, 2008 8:46 pm
Posts: 255
WLA-DX has support for a kind of section that WLALink will not drop later on if it has no references to it, citing line 2180 of https://github.com/alekmaul/pvsneslib/b ... readme.txt . I think it may be useful in this case if you don't want to call spcSetBank for each ROM bank of your soundbank, although I haven't actually tested it myself...


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 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