31 Commits

Author SHA1 Message Date
38afb567b9 chore: misc style improvements 2022-05-27 22:09:15 -03:00
c6ce810afe fix: play right samples in right channel 2022-05-27 18:47:34 -03:00
c007bf4d8e fix: remove DC offset from audio output 2022-05-26 17:10:10 -03:00
24a8905c29 chore: emu audio sync code to emu.zig 2022-05-23 12:05:57 -03:00
e70fe73899 chore: redo apu sampling 2022-05-23 11:25:28 -03:00
a2d2a84850 chore: implement apu u16 reads 2022-05-21 15:09:32 -03:00
109561310e fix: clean up frequency timer implementations 2022-05-21 14:21:50 -03:00
5164aa961d Revert "fix: resolve off-by-one errors when scheduling freq timer expirations"
This reverts commit c9b0030b4b9b25df6566ce0104c40b0cd18665fe.
2022-05-21 13:46:46 -03:00
c9b0030b4b fix: resolve off-by-one errors when scheduling freq timer expirations 2022-05-21 13:34:14 -03:00
af2ad6c924 chore: improve APU accuracy + scheduler refactoring 2022-05-20 16:01:12 -03:00
2e821ab79c chore: improve audio accuracy 2022-05-17 11:28:05 -03:00
660c8a2d62 chore: clean up DMA code 2022-05-05 22:36:11 -03:00
f0ce39230b chore: contain DMA Controllers in a tuple rather than a struct 2022-05-05 19:53:12 -03:00
68012f84d3 chore: comment ARM MSR code + Audio issues 2022-04-30 22:17:34 -05:00
6c88a0aec2 chore: improvements to APU accuracy 2022-04-29 12:19:31 -05:00
f4a48d536c chore: implement I/O regsister for Minish Cap 2022-04-25 08:01:34 -05:00
762494453f chore: only sync to audio for now 2022-04-22 20:56:52 -03:00
9cce4d9859 chore: misc improvements 2022-04-21 10:15:52 -03:00
85e8ca9146 feat: implement Noise
Kirby & The Amazing Mirror crashes only in ReleaseSafe / ReleaseBug.

TODO: Figure out why
2022-04-21 02:40:02 -03:00
2f07c18f0b feat: implement ch3 2022-04-21 00:21:55 -03:00
ed3d275974 feat: implement ch2 2022-04-20 21:33:46 -03:00
0184ec3e5e feat: implement ch1
TODO: It's really loud
2022-04-20 20:52:50 -03:00
97a689ab55 chore: broken impl of ch1 2022-04-20 09:39:12 -03:00
c3611a0f00 feat: add audio resampler
Also implement extremely naive audio sync
2022-04-20 06:27:06 -03:00
d270ec711f chore: calculate apu sample rate a bit better 2022-04-20 02:36:32 -03:00
172a59aefb 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-04-14 05:58:32 -03:00
9b9b6c0d6f feat: implement ARM read open bus 2022-04-13 23:28:14 -03:00
76b4d56ca6 feat: Initial Implementation of DMA Audio 2022-04-10 04:50:09 -03:00
a1008738d2 chore: run zigfmt 2022-04-08 02:13:58 -03:00
bf7b533b3c chore: stub more apu I/O addresses 2022-03-28 19:40:47 -03:00
1fd80c1c23 feat: define APU registers 2022-03-15 08:09:07 -03:00