mirror of https://github.com/bsnes-emu/bsnes.git
29 lines
597 B
C++
29 lines
597 B
C++
struct APU : Thread, MMIO {
|
|
static auto Main() -> void;
|
|
auto main() -> void;
|
|
auto hipass(int16& sample, int64& bias) -> void;
|
|
auto power() -> void;
|
|
|
|
auto mmio_read(uint16 addr) -> uint8;
|
|
auto mmio_write(uint16 addr, uint8 data) -> void;
|
|
|
|
auto serialize(serializer&) -> void;
|
|
|
|
#include "square1/square1.hpp"
|
|
#include "square2/square2.hpp"
|
|
#include "wave/wave.hpp"
|
|
#include "noise/noise.hpp"
|
|
#include "master/master.hpp"
|
|
|
|
uint12 sequencer_base;
|
|
uint3 sequencer_step;
|
|
|
|
Square1 square1;
|
|
Square2 square2;
|
|
Wave wave;
|
|
Noise noise;
|
|
Master master;
|
|
};
|
|
|
|
extern APU apu;
|