snes9x/apu/bapu/dsp/dsp.hpp

27 lines
455 B
C++
Raw Normal View History

2011-06-12 06:25:22 +00:00
#include "SPC_DSP.h"
class DSP : public Processor {
public:
enum { Threaded = false };
alwaysinline void step(unsigned clocks);
alwaysinline void synchronize_smp();
uint8 read(uint8 addr);
void write(uint8 addr, uint8 data);
void enter();
void power();
void reset();
void channel_enable(unsigned channel, bool enable);
DSP();
private:
SPC_DSP spc_dsp;
int16 samplebuffer[8192];
bool channel_enabled[8];
};
extern DSP dsp;