22 #ifndef AGI_SOUND_PCJR_H 23 #define AGI_SOUND_PCJR_H 25 #include "audio/audiostream.h" 31 #define SAMPLE_RATE 22050 69 unsigned int noiseState;
78 void play(
int resnum)
override;
82 int readBuffer(int16 *buffer,
const int numSamples)
override;
98 int getNextNote(
int ch);
99 int getNextNote_v2(
int ch);
100 int getNextNote_v1(
int ch);
103 void writeData(uint8 val);
105 int chanGen(
int chan, int16 *stream,
int len);
107 int fillNoise(
ToneChan *t, int16 *buf,
int len);
108 int fillSquare(
ToneChan *t, int16 *buf,
int len);
Definition: sound_pcjr.h:54
bool isStereo() const override
Definition: sound_pcjr.h:84
bool endOfData() const override
Definition: sound_pcjr.h:88
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: sound_pcjr.h:73
int getRate() const override
Definition: sound_pcjr.h:92
Definition: audiostream.h:50
Definition: sound_pcjr.h:40