ScummVM API documentation
OPL::RealOPL Class Reference

#include <fmopl.h>

Inheritance diagram for OPL::RealOPL:
OPL::OPL OPL::RetroWaveOPL3::OPL

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]
 

Detailed Description

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.

Member Function Documentation

◆ setCallbackFrequency()

void OPL::RealOPL::setCallbackFrequency ( int  timerFrequency)
virtual

Change the callback frequency. This must only be called from a timer proc.

Implements OPL::OPL.

◆ startCallbacks()

void OPL::RealOPL::startCallbacks ( int  timerFrequency)
protectedvirtual

Start the callbacks.

Implements OPL::OPL.

◆ stopCallbacks()

void OPL::RealOPL::stopCallbacks ( )
protectedvirtual

Stop the callbacks.

Implements OPL::OPL.


The documentation for this class was generated from the following file: