zeta0134 / rusticnes-core

I decided to teach myself Rust by writing an NES emulator. Things quickly got out of hand.
MIT License
34 stars 4 forks source link

Audio: implement proper channel mixing #2

Closed zeta0134 closed 2 years ago

zeta0134 commented 4 years ago

Right now, the output of each of the NES's internal audio channels is simply multiplied by a constant and added together to produce the final output. This was fine for testing, but is not at all how audio levels are mixed on real hardware, see: https://wiki.nesdev.com/w/index.php/APU_Mixer

zeta0134 commented 2 years ago

This is now implemented, relevant code for generating the lookup tables: https://github.com/zeta0134/rusticnes-core/blob/master/src/apu/mod.rs#L77