Language…
14 users online:  Ahrion, Anas, crocodileman94, DasFueller, eltiolavara9, Foxy_9000_, Hammerer, Isikoro, jump_run_repeat, monkey03297, Mythundare,  Nanako, Necrotext, pzyko103 - Guests: 273 - Bots: 433
Users: 64,795 (2,377 active)
Latest user: mathew

Sound effects

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:

Code
@8 l12 v96

o5 g f+ d+ < a g+ > e g+ > c
My guess is that the level you are in isn't playing custom music, correct?
Naw, it was just the formatting. Also, instrument @24 doesn't seem to work in sound effects.

To clarify, I've got this problem solved.