25 #include "common/func.h" 26 #include "common/ptr.h" 28 #include "audio/audiostream.h" 45 void start(TimerCallback *callback,
int timerFrequency);
93 virtual void onTimer();
96 static void timerProc(
void *refCon);
114 static const int FIXP_SHIFT = 16;
124 int readBuffer(int16 *buffer,
const int numSamples)
override;
125 int getRate()
const override;
143 virtual void generateSamples(int16 *buffer,
int numSamples) = 0;
Common::Functor0< void > TimerCallback
Definition: chip.h:40
void start(TimerCallback *callback, int timerFrequency)
virtual void stopCallbacks()=0
Common::ScopedPtr< TimerCallback > _callback
Definition: chip.h:72
bool endOfData() const override
Definition: chip.h:126
Definition: audiostream.h:50
virtual void startCallbacks(int timerFrequency)=0
virtual void setCallbackFrequency(int timerFrequency)=0