22 #ifndef AUDIO_SOFTSYNTH_AY8912_H 23 #define AUDIO_SOFTSYNTH_AY8912_H 25 #include "audio/chip.h" 26 #include "common/mutex.h" 51 int readBuffer(int16 *buffer,
const int numSamples)
override;
52 bool isStereo()
const override {
return true; }
55 int getRate()
const override {
return _rate; }
57 void setReg(
int reg,
unsigned char value);
58 void setRegs(
const unsigned char *regs);
97 int _bit_a, _bit_b, _bit_c, _bit_n;
98 int _cnt_a, _cnt_b, _cnt_c, _cnt_n, _cnt_e;
99 int _chipTactsPerOutcount;
103 unsigned int _curSeed;
105 void prepareGeneration();
106 static void genEnv();
107 static bool _envGenInit;
108 static int _envelope[16][128];
113 #endif // AUDIO_SOFTSYNTH_AY8912_H int getRate() const override
Definition: ay8912.h:55
int readBuffer(int16 *buffer, const int numSamples) override
bool isStereo() const override
Definition: ay8912.h:52
Definition: audiostream.h:50
void generateSamples(int16 *buffer, int numSamples) override
bool endOfData() const override
Definition: ay8912.h:53
bool endOfStream() const override
Definition: ay8912.h:54