Example: the 16-bit output of the square wave (with volume $0F) would be $0F00 (unsigned).
Now, using the formula from the wiki, what's the 16-bit output value? If both square waves produces volume $0F, the mixer returns a value of 0.25.
APU mixer output?
Moderator: Moderators
APU mixer output?
Zepper
RockNES author
RockNES author
Re: APU mixer output?
The wiki page states that the output range is from 0.0 to 1.0. You could scale this to +0 to +32000, leaving enough headroom for a first-order high-pass to block DC. Keep in mind, however, that some now-obscure audio APIs expect unsigned audio in the range 0 to 65535 instead of the more common signed audio in the range -32768 to 32767. In this case, you could scale from 0.0 to 1.0 out of the formula to 32768 to 64768.
Re: APU mixer output?
I still use Allegro, and yes, it requires unsigned samples.
Thank you.
Thank you.
Zepper
RockNES author
RockNES author