mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
491 B
C++
28 lines
491 B
C++
#include "SPC_DSP.h"
|
|
|
|
struct DSP : Thread {
|
|
enum : bool { Threaded = false };
|
|
alwaysinline void step(unsigned clocks);
|
|
alwaysinline void synchronize_smp();
|
|
|
|
bool mute();
|
|
uint8 read(uint8 addr);
|
|
void write(uint8 addr, uint8 data);
|
|
|
|
void enter();
|
|
void power();
|
|
void reset();
|
|
|
|
void channel_enable(unsigned channel, bool enable);
|
|
|
|
void serialize(serializer&);
|
|
DSP();
|
|
|
|
private:
|
|
SPC_DSP spc_dsp;
|
|
int16 samplebuffer[8192];
|
|
bool channel_enabled[8];
|
|
};
|
|
|
|
extern DSP dsp;
|