32 Commits

Author SHA1 Message Date
bf8521eb5e chore: use stdlib endian-aware integer read/write functions 2022-10-21 05:12:47 -03:00
db064d2321 chore: misc style improvements 2022-10-21 05:12:47 -03:00
2502cc5bf0 fix: play right samples in right channel 2022-10-21 05:12:46 -03:00
9d839a0328 fix: remove DC offset from audio output 2022-10-21 05:12:45 -03:00
f373d8e17c chore: emu audio sync code to emu.zig 2022-10-21 05:12:44 -03:00
1b7d15e7d2 chore: redo apu sampling 2022-10-21 05:12:44 -03:00
89d8c08cd1 chore: implement apu u16 reads 2022-10-21 05:12:44 -03:00
3cd02a44cf fix: clean up frequency timer implementations 2022-10-21 05:12:44 -03:00
87eb0cc808 Revert "fix: resolve off-by-one errors when scheduling freq timer expirations"
This reverts commit c9b0030b4b9b25df6566ce0104c40b0cd18665fe.
2022-10-21 05:12:43 -03:00
8313210ddc fix: resolve off-by-one errors when scheduling freq timer expirations 2022-10-21 05:12:43 -03:00
2664f5cf20 chore: improve APU accuracy + scheduler refactoring 2022-10-21 05:12:43 -03:00
242bf08cf2 chore: improve audio accuracy 2022-10-21 05:12:42 -03:00
628d4cfb68 chore: clean up DMA code 2022-10-21 05:12:42 -03:00
8826242bf3 chore: contain DMA Controllers in a tuple rather than a struct 2022-10-21 05:12:41 -03:00
f1c68fb0de chore: comment ARM MSR code + Audio issues 2022-10-21 05:12:40 -03:00
896ae0935a chore: improvements to APU accuracy 2022-10-21 05:12:39 -03:00
084d4b28dd chore: implement I/O regsister for Minish Cap 2022-10-21 05:12:38 -03:00
0f343f0b74 chore: only sync to audio for now 2022-10-21 05:12:38 -03:00
e690f88cda chore: misc improvements 2022-10-21 05:12:37 -03:00
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
f8159645e0 feat: implement ch3 2022-10-21 05:12:37 -03:00
cccb83a926 feat: implement ch2 2022-10-21 05:12:37 -03:00
af8fe66c43 feat: implement ch1
TODO: It's really loud
2022-10-21 05:12:36 -03:00
1f23aff22c chore: broken impl of ch1 2022-10-21 05:12:36 -03:00
e580b78020 feat: add audio resampler
Also implement extremely naive audio sync
2022-10-21 05:12:36 -03:00
a87a5ce273 chore: calculate apu sample rate a bit better 2022-10-21 05:12:36 -03:00
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
c03c142b14 feat: implement ARM read open bus 2022-10-21 05:12:35 -03:00
f039c891c7 feat: Initial Implementation of DMA Audio 2022-10-21 05:12:33 -03:00
b6d2084c96 chore: run zigfmt 2022-10-21 05:12:32 -03:00
f12800f2d0 chore: stub more apu I/O addresses 2022-10-21 05:12:30 -03:00
bb9dc45e0c feat: define APU registers 2022-10-21 05:12:27 -03:00