#include <fmopl.h>
Public Member Functions | |
void | setCallbackFrequency (int timerFrequency) |
Public Member Functions inherited from OPL::OPL | |
virtual bool | init ()=0 |
virtual void | reset ()=0 |
virtual void | write (int a, int v)=0 |
virtual byte | read (int a)=0 |
virtual void | writeReg (int r, int v)=0 |
void | start (TimerCallback *callback, int timerFrequency=kDefaultCallbackFrequency) |
void | stop () |
Protected Member Functions | |
void | startCallbacks (int timerFrequency) |
void | stopCallbacks () |
virtual void | onTimer () |
Protected Member Functions inherited from OPL::OPL | |
void | initDualOpl2OnOpl3 (Config::OplType oplType) |
bool | emulateDualOpl2OnOpl3 (int r, int v, Config::OplType oplType) |
Additional Inherited Members | |
Public Types inherited from OPL::OPL | |
enum | { kDefaultCallbackFrequency = 250 } |
Protected Attributes inherited from OPL::OPL | |
Common::ScopedPtr< TimerCallback > | _callback |
bool | _rhythmMode |
int | _connectionFeedbackValues [3] |
An OPL that represents a real OPL, as opposed to an emulated one.
This will use an actual timer instead of using one calculated from the number of samples in an AudioStream::readBuffer call.
|
virtual |
Change the callback frequency. This must only be called from a timer proc.
Implements OPL::OPL.
|
protectedvirtual |
Start the callbacks.
Implements OPL::OPL.
|
protectedvirtual |
Stop the callbacks.
Implements OPL::OPL.