April 11th, 2015, 21:02
Probably nothing to do with LCDC status interrupts. I'm not detecting Aladdin or Tomb Raider setting up the flags in the LCDC register (Aladdin does set LY == LYC interrupts which I know I've done correctly with homebrew tests of my own). However, both games seem to forgo using the interrupts and constantly read the LCDC status register themselves. Looks to me like it is something to do with setting Bits 0-1 correctly at the right times. I'll investigate later.
April 12th, 2015, 19:52
May 6th, 2015, 01:36
I've been working really hard the past three days to get proper audio and color support up and I'm almost finished!
EDIT: I currently have the Coincidence Interrupt disabled, because my implementation somehow creates bugs in Pokemon Gold / Silver
Last edited by Flerovium; May 6th, 2015 at 01:40.
May 6th, 2015, 06:08
Sounds like you're missing a few notes (bad recording?) but it's great that you've made so much progress. Keep it up!
May 6th, 2015, 09:40
No, unfortunaly this is not the bad recording Notes get eaten randomly and I haven't exactly figured out, from where this problem arises. Either the emulators timing is off, or the audio library (in my case NAudio) is lagging, when running beside the emulator. But fortunaly I abstracted the audio code from the beginning. Therefore it shouldn't be too hard to exchange the library.
EDIT: The bug was in the audio library. I changed my code so that NAudio uses DirectSound and now it isn't lagging anymore!
Last edited by Flerovium; May 6th, 2015 at 14:01.
May 7th, 2015, 06:23
Congratulations! For me, sound programming is always a challenge because I know very little about dealing with digital audio. I managed to do the GB/GBC just fine, and I've gotten the GBA mostly correct (more correct than wrong). It sounds like your audio is still a bit too slow. It plays all of the notes, but you'll notice audio-video desyncing during Pokemon Gold/Silver's intro (around the time Pikachu attacks Jigglypuff). I'm sure you know what to do, and it's really great to see someone working on their emulator again. Good luck!
May 7th, 2015, 11:05
Thanks, good luck to you too! For myself I already was interested in audio (programming) for some time. And my big brother is a physics students which explained some of the elementary rules to me. The rest I did with the help of the internet and my own thoughts You're right it is a bit desynced sometimes but most time it's not noticeable therefore it doesn't annoy me too much.
Last edited by Flerovium; May 8th, 2015 at 16:42.