25 #include "audio/chip.h" 41 static bool _hasInstance;
45 static const int DEFAULT_CALLBACK_FREQUENCY = 250;
55 virtual bool init() = 0;
60 virtual void reset() = 0;
70 virtual void write(
int a,
int v) = 0;
79 virtual void writeReg(
int r,
int v) = 0;
82 void start(
TimerCallback *callback) { start(callback, DEFAULT_CALLBACK_FREQUENCY); }
void start(TimerCallback *callback, int timerFrequency)