I'm trying to make p switches play a sound effect instead of changing the music.
The easy part was changing the p switch itself. I've gone in and made it store 2B to $1DF9 instead of 0E to $1DFB.
The problem is, my sound effect just doesn't work. It just plays silence.
Making the p switch play 2A, which is a valid sound, works fine.
I used romi's addmusic to insert my sound effect as 2B, which does not work fine.
This file works fine as music... but when inserted as a sound effect with -se option, I can't get it to make any sound.
#7 w240 t53
#7 @24 q7f v120
f8
EDIT: Nevermind... the formatting was wrong. I found an example sfx somewhere, and learned that there shouldn't be an channel specified with # probably because the channel is automatically specified by what register you're using.
For the record here's a proper sfx file:
The easy part was changing the p switch itself. I've gone in and made it store 2B to $1DF9 instead of 0E to $1DFB.
The problem is, my sound effect just doesn't work. It just plays silence.
Making the p switch play 2A, which is a valid sound, works fine.
I used romi's addmusic to insert my sound effect as 2B, which does not work fine.
This file works fine as music... but when inserted as a sound effect with -se option, I can't get it to make any sound.
#7 w240 t53
#7 @24 q7f v120
f8
EDIT: Nevermind... the formatting was wrong. I found an example sfx somewhere, and learned that there shouldn't be an channel specified with # probably because the channel is automatically specified by what register you're using.
For the record here's a proper sfx file:
Code
@8 l12 v96 o5 g f+ d+ < a g+ > e g+ > c