Quantcast
Channel: nesdev.org
Viewing all articles
Browse latest Browse all 785

How are SFX played over music?

$
0
0
Now that I have a working nsf player, I realized my next problem. There are separate tracks for sound effects but I don't know how to play them.

One way I can think of is to prerender them into a buffer on load, and then on playback just overwrite the music buffer with the non-zero sfx channels. It seems reasonably simple, but it can't be "correct" can it? I'm guessing this problem is unique to NSFs. The hardware or an emulator just says what to send to the APU, and doesn't care about thing like song tracks being loaded, right?

Statistics: Posted by tesserex — Thu Feb 22, 2024 1:59 pm — Replies 3 — Views 76



Viewing all articles
Browse latest Browse all 785