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

#include <emumidi.h>

Inheritance diagram for MidiDriver_Emulated:
Collaboration diagram for MidiDriver_Emulated:

List of all members.

Public Member Functions

 MidiDriver_Emulated (Audio::Mixer *mixer)
virtual int open ()
 Open the midi driver.
bool isOpen () const
 Check whether the midi driver has already been opened.
virtual void setTimerCallback (void *timer_param, Common::TimerManager::TimerProc timer_proc)
virtual uint32 getBaseTempo ()
 The time in microseconds between invocations of the timer callback.
virtual int readBuffer (int16 *data, const int numSamples)
virtual bool endOfData () const

Protected Member Functions

virtual void generateSamples (int16 *buf, int len)=0
virtual void onTimer ()

Protected Attributes

bool _isOpen
Audio::Mixer_mixer
Audio::SoundHandle _mixerSoundHandle
int _baseFreq

Private Types

enum  { FIXP_SHIFT = 16 }

Private Attributes

Common::TimerManager::TimerProc _timerProc
void * _timerParam
int _nextTick
int _samplesPerTick

Detailed Description

Definition at line 30 of file emumidi.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
FIXP_SHIFT 

Definition at line 40 of file emumidi.h.


Constructor & Destructor Documentation

MidiDriver_Emulated::MidiDriver_Emulated ( Audio::Mixer mixer  )  [inline]

Definition at line 54 of file emumidi.h.


Member Function Documentation

virtual bool MidiDriver_Emulated::endOfData (  )  const [inline, virtual]

Definition at line 120 of file emumidi.h.

virtual void MidiDriver_Emulated::generateSamples ( int16 buf,
int  len 
) [protected, pure virtual]
virtual uint32 MidiDriver_Emulated::getBaseTempo (  )  [inline, virtual]

The time in microseconds between invocations of the timer callback.

Implements MidiDriver.

Definition at line 86 of file emumidi.h.

bool MidiDriver_Emulated::isOpen (  )  const [inline, virtual]

Check whether the midi driver has already been opened.

Implements MidiDriver.

Definition at line 79 of file emumidi.h.

virtual void MidiDriver_Emulated::onTimer (  )  [inline, protected, virtual]

Definition at line 51 of file emumidi.h.

virtual int MidiDriver_Emulated::open (  )  [inline, virtual]

Open the midi driver.

Returns:
0 if successful, otherwise an error code.

Implements MidiDriver.

Definition at line 65 of file emumidi.h.

virtual int MidiDriver_Emulated::readBuffer ( int16 data,
const int  numSamples 
) [inline, virtual]

Definition at line 91 of file emumidi.h.

virtual void MidiDriver_Emulated::setTimerCallback ( void *  timer_param,
Common::TimerManager::TimerProc  timer_proc 
) [inline, virtual]

Implements MidiDriver.

Definition at line 81 of file emumidi.h.


Member Data Documentation

Definition at line 48 of file emumidi.h.

bool MidiDriver_Emulated::_isOpen [protected]

Definition at line 32 of file emumidi.h.

Definition at line 33 of file emumidi.h.

Definition at line 34 of file emumidi.h.

Definition at line 44 of file emumidi.h.

Definition at line 45 of file emumidi.h.

Definition at line 38 of file emumidi.h.


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


Generated on Sat Jan 12 2019 05:03:22 for ResidualVM by doxygen 1.7.1
curved edge   curved edge