mirror of
https://github.com/Michael-Prince-Sharpe/bsnes-classic.git
synced 2025-04-02 10:21:42 -04:00
31 lines
654 B
C++
31 lines
654 B
C++
#include "SPC_DSP.h"
|
|
|
|
class DSP : public Processor, public ChipDebugger {
|
|
public:
|
|
enum : bool { Threaded = false };
|
|
enum : bool { SupportsChannelEnable = true };
|
|
|
|
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&);
|
|
bool property(unsigned id, string &name, string &value) { return false; }
|
|
DSP();
|
|
|
|
private:
|
|
SPC_DSP spc_dsp;
|
|
int16 samplebuffer[8192];
|
|
bool channel_enabled[8];
|
|
};
|
|
|
|
extern DSP dsp;
|