Logo Search packages:      
Sourcecode: scummvm version File versions

Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Attributes

MidiDriver Class Reference

#include <mididrv.h>

Inheritance diagram for MidiDriver:
Inheritance graph
[legend]
Collaboration diagram for MidiDriver:
Collaboration graph
[legend]

List of all members.

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 }
typedef uint32 DeviceHandle
enum  DeviceStringType { kDriverName, kDriverId, kDeviceName, kDeviceId }

Public Member Functions

virtual MidiChannelallocateChannel ()=0
virtual void close ()=0
virtual uint32 getBaseTempo ()=0
virtual MidiChannelgetPercussionChannel ()=0
virtual bool isOpen () const =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
void sendGMReset ()
void sendMT32Reset ()
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 bool checkDevice (DeviceHandle handle)
static MidiDrivercreateMidi (DeviceHandle handle)
static DeviceHandle detectDevice (int flags)
static DeviceHandle getDeviceHandle (const Common::String &identifier)
static Common::String getDeviceString (DeviceHandle handle, DeviceStringType type)
static const char * getErrorName (int error_code)
static MusicType getMusicType (DeviceHandle handle)
static uint32 musicType2GUIO (uint32 musicType)

Static Public Attributes

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

Static Private Attributes

static bool _forceTypeMT32 = false

Detailed Description

Abstract MIDI Driver Class

Todo:
Rename MidiDriver to MusicDriver

Definition at line 134 of file mididrv.h.


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

Generated by  Doxygen 1.6.0   Back to index