Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

MidiDriver Class Reference

#include <mididrv.h>

Inherited by AGOS::MidiPlayer, Groovie::MusicPlayerMidi, Kyra::MidiOutput, Kyra::SoundTowns, Lure::MidiMusic, M4::MidiPlayer, Made::MusicPlayer, MidiDriver_Emulated, MidiDriver_MPU401, Parallaction::MidiPlayer, Parallaction::MidiPlayer_MSC, Queen::MidiMusic, Saga::MusicPlayer, Sci::MidiPlayer, Scumm::Player, Tinsel::MidiMusicPlayer, and Touche::MidiPlayer.

List of all members.


Detailed Description

Abstract MIDI Driver Class

Todo:
Rename MidiDriver to MusicDriver

Definition at line 128 of file mididrv.h.


Public Types

enum  { MERR_CANNOT_CONNECT = 1, MERR_DEVICE_NOT_AVAILABLE = 3, MERR_ALREADY_OPEN = 4 }
enum  { PROP_OLD_ADLIB = 2, PROP_CHANNEL_MASK = 3 }

Public Member Functions

virtual MidiChannel * allocateChannel ()=0
virtual void close ()=0
virtual uint32 getBaseTempo (void)=0
virtual MidiChannel * getPercussionChannel ()=0
virtual void metaEvent (byte type, byte *data, uint16 length)
virtual int open ()=0
virtual uint32 property (int prop, uint32 param)
void send (byte status, byte firstOp, byte secondOp)
virtual void send (uint32 b)=0
virtual void setPitchBendRange (byte channel, uint range)
virtual void setTimerCallback (void *timer_param, Common::TimerManager::TimerProc timer_proc)=0
virtual void sysEx (const byte *msg, uint16 length)
virtual void sysEx_customInstrument (byte channel, uint32 type, const byte *instr)

Static Public Member Functions

static MidiDrivercreateMidi (int midiDriver)
static MidiDriverType detectMusicDriver (int flags)
static const
MidiDriverDescription
findMusicDriver (const Common::String &str)
static const
MidiDriverDescription
getAvailableMidiDrivers ()
static const char * getErrorName (int error_code)
static MidiDriverType parseMusicDriver (const Common::String &str)

Static Public Attributes

static const byte _gmToMt32 [128]
static const byte _mt32ToGm [128]

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

Generated by  Doxygen 1.6.0   Back to index