Commit Graph

33 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka 89619596ad chore: remove code that pretends to remove DC offset 2022-10-21 05:12:48 -03:00
Rekai Nyangadzayi Musuka bf8521eb5e chore: use stdlib endian-aware integer read/write functions 2022-10-21 05:12:47 -03:00
Rekai Nyangadzayi Musuka db064d2321 chore: misc style improvements 2022-10-21 05:12:47 -03:00
Rekai Nyangadzayi Musuka 2502cc5bf0 fix: play right samples in right channel 2022-10-21 05:12:46 -03:00
Rekai Nyangadzayi Musuka 9d839a0328 fix: remove DC offset from audio output 2022-10-21 05:12:45 -03:00
Rekai Nyangadzayi Musuka f373d8e17c chore: emu audio sync code to emu.zig 2022-10-21 05:12:44 -03:00
Rekai Nyangadzayi Musuka 1b7d15e7d2 chore: redo apu sampling 2022-10-21 05:12:44 -03:00
Rekai Nyangadzayi Musuka 89d8c08cd1 chore: implement apu u16 reads 2022-10-21 05:12:44 -03:00
Rekai Nyangadzayi Musuka 3cd02a44cf fix: clean up frequency timer implementations 2022-10-21 05:12:44 -03:00
Rekai Nyangadzayi Musuka 87eb0cc808 Revert "fix: resolve off-by-one errors when scheduling freq timer expirations"
This reverts commit c9b0030b4b.
2022-10-21 05:12:43 -03:00
Rekai Nyangadzayi Musuka 8313210ddc fix: resolve off-by-one errors when scheduling freq timer expirations 2022-10-21 05:12:43 -03:00
Rekai Nyangadzayi Musuka 2664f5cf20 chore: improve APU accuracy + scheduler refactoring 2022-10-21 05:12:43 -03:00
Rekai Nyangadzayi Musuka 242bf08cf2 chore: improve audio accuracy 2022-10-21 05:12:42 -03:00
Rekai Nyangadzayi Musuka 628d4cfb68 chore: clean up DMA code 2022-10-21 05:12:42 -03:00
Rekai Nyangadzayi Musuka 8826242bf3 chore: contain DMA Controllers in a tuple rather than a struct 2022-10-21 05:12:41 -03:00
Rekai Nyangadzayi Musuka f1c68fb0de chore: comment ARM MSR code + Audio issues 2022-10-21 05:12:40 -03:00
Rekai Nyangadzayi Musuka 896ae0935a chore: improvements to APU accuracy 2022-10-21 05:12:39 -03:00
Rekai Nyangadzayi Musuka 084d4b28dd chore: implement I/O regsister for Minish Cap 2022-10-21 05:12:38 -03:00
Rekai Nyangadzayi Musuka 0f343f0b74 chore: only sync to audio for now 2022-10-21 05:12:38 -03:00
Rekai Nyangadzayi Musuka e690f88cda chore: misc improvements 2022-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka f074b703b3 feat: implement Noise
Kirby & The Amazing Mirror crashes only in ReleaseSafe / ReleaseBug.

TODO: Figure out why
2022-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka f8159645e0 feat: implement ch3 2022-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka cccb83a926 feat: implement ch2 2022-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka af8fe66c43 feat: implement ch1
TODO: It's really loud
2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka 1f23aff22c chore: broken impl of ch1 2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka e580b78020 feat: add audio resampler
Also implement extremely naive audio sync
2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka a87a5ce273 chore: calculate apu sample rate a bit better 2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka af1887e0a6 feat: schedule audio sampling on scheduler
DMA sound in games like Pokemon Emerald, Chobits, Love Hina, and Kirby:
Nightmare in Dream Land sound great save for conerns about resampling
2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka c03c142b14 feat: implement ARM read open bus 2022-10-21 05:12:35 -03:00
Rekai Nyangadzayi Musuka f039c891c7 feat: Initial Implementation of DMA Audio 2022-10-21 05:12:33 -03:00
Rekai Nyangadzayi Musuka b6d2084c96 chore: run zigfmt 2022-10-21 05:12:32 -03:00
Rekai Nyangadzayi Musuka f12800f2d0 chore: stub more apu I/O addresses 2022-10-21 05:12:30 -03:00
Rekai Nyangadzayi Musuka bb9dc45e0c feat: define APU registers 2022-10-21 05:12:27 -03:00