2011-01-22 08:15:49 +00:00
|
|
|
#ifdef APU_CPP
|
|
|
|
|
|
|
|
void APU::serialize(serializer &s) {
|
Update to v075r05 release.
byuu says:
Added Game Boy sound emulation, all four channels.
It's really, really, really bad. Plenty of bugs, I don't even know what
the fuck a high-pass filter is so that isn't there. Hermite resampling
from 4MHz down to 44KHz. But it's tolerable.
I don't understand what sweep is for at all, and I'm sure I have that
insane recursive reload behavior wrong.
This is pretty much my own design. I referenced blargg's gb snd emu,
blargg's older gb apu ref, Cydrak's APU core, that lousy gbdev wiki
article, the completely and utterly worthless pandocs, and received
nothing but bad and wrong information that just wasted my time from
But I managed to pull it off. It's also painfully slow, like 250fps on
my machine slow. Countless optimizations are possible.
2011-02-02 10:38:28 +00:00
|
|
|
s.array(mmio_data);
|
|
|
|
s.integer(counter);
|
|
|
|
s.integer(sequencer);
|
|
|
|
|
2011-02-02 10:37:31 +00:00
|
|
|
square1.serialize(s);
|
|
|
|
square2.serialize(s);
|
|
|
|
wave.serialize(s);
|
|
|
|
noise.serialize(s);
|
|
|
|
master.serialize(s);
|
2011-01-22 08:15:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|