superctr / MDSDRV

Sound driver for Sega Mega Drive
zlib License
63 stars 4 forks source link

Global volume and fadeout #5

Closed superctr closed 4 years ago

superctr commented 4 years ago

I might consider only supporting fade in/out for the music tracks only. That will save 6 words of RAM for a feature that probably won't be needed.

Global volume can be a single word containing two byte values. One for PSG/PCM attenuated and one for FM. Fade and volume change routine converts FM value to PSG/PCM only once.