ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

An OPL that represents a real OPL, as opposed to an emulated one. More...

#include <fmopl.h>

Inheritance diagram for OPL::RealOPL:
Collaboration diagram for OPL::RealOPL:

List of all members.

Public Member Functions

 RealOPL ()
virtual ~RealOPL ()
void setCallbackFrequency (int timerFrequency)
 Change the callback frequency.

Protected Member Functions

void startCallbacks (int timerFrequency)
 Start the callbacks.
void stopCallbacks ()
 Stop the callbacks.

Private Types

enum  { kMaxFreq = 100 }

Private Member Functions

void onTimer ()

Static Private Member Functions

static void timerProc (void *refCon)

Private Attributes

uint _baseFreq
uint _remainingTicks

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.

Definition at line 209 of file fmopl.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
kMaxFreq 

Definition at line 229 of file fmopl.h.


Constructor & Destructor Documentation

OPL::RealOPL::RealOPL (  ) 

Definition at line 206 of file fmopl.cpp.

OPL::RealOPL::~RealOPL (  )  [virtual]

Definition at line 209 of file fmopl.cpp.


Member Function Documentation

void OPL::RealOPL::onTimer (  )  [private]

Definition at line 245 of file fmopl.cpp.

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

Change the callback frequency.

This must only be called from a timer proc.

Implements OPL::OPL.

Definition at line 217 of file fmopl.cpp.

void OPL::RealOPL::startCallbacks ( int  timerFrequency  )  [protected, virtual]

Start the callbacks.

Implements OPL::OPL.

Definition at line 222 of file fmopl.cpp.

void OPL::RealOPL::stopCallbacks (  )  [protected, virtual]

Stop the callbacks.

Implements OPL::OPL.

Definition at line 235 of file fmopl.cpp.

void OPL::RealOPL::timerProc ( void *  refCon  )  [static, private]

Definition at line 241 of file fmopl.cpp.


Member Data Documentation

Definition at line 226 of file fmopl.h.

Definition at line 227 of file fmopl.h.


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


Generated on Sat Jan 12 2019 05:04:58 for ResidualVM by doxygen 1.7.1
curved edge   curved edge