gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Audio > Mixing audio

#20074 - Lord Graga - Sat May 01, 2004 11:34 am

Heya. I was just wondering what the most correct way of mixing audio on GBA is!

I know that it's just basicly wave1 + wave2, but it sounds like crap. What can be done to change that?

#20076 - poslundc - Sat May 01, 2004 1:11 pm

Lord Graga wrote:
I know that it's just basicly wave1 + wave2, but it sounds like crap.


I do that, and it sounds perfectly fine. Just make sure your resultant total is in the range [-128, 127]. To make sure that happens, either scale or clip your result.

Dan.

#20108 - Lord Graga - Sun May 02, 2004 5:37 am

Okay, I'll see if I can keep a bit more within that limit.