C# Class NScumm.Core.Audio.MidiDriver

Inheritance: MidiDriverBase, IDisposable
Mostrar archivo Open project: scemino/nscumm Class Usage Examples

Public Properties

Property Type Description
Mt32ToGm byte[]

Public Methods

Method Description
AllocateChannel ( ) : MidiChannel
CreateMidi ( IMixer mixer, DeviceHandle handle ) : IMidiDriver

Create music driver matching the given device handle, or NULL if there is no match.

DetectDevice ( MusicDriverTypes flags, string selectedDevice ) : DeviceHandle

Returns the device handle based on the present devices and the flags parameter.

Dispose ( ) : void
GetDeviceHandle ( string identifier ) : DeviceHandle

Find the music driver matching the given driver name/description.

GetErrorName ( MidiDriverError errorCode ) : string

Gets a text representation of an error code.

GetMusicType ( DeviceHandle handle ) : MusicType
GetPercussionChannel ( ) : MidiChannel
Open ( ) : MidiDriverError

Open the midi driver.

Property ( int prop, int param ) : int

Get or set a property.

SendGmReset ( ) : void
SendMt32Reset ( ) : void
SetTimerCallback ( object timerParam, TimerProc timerProc ) : void
SysExCustomInstrument ( byte channel, uint type, byte instr ) : void

Private Methods

Method Description
GetDeviceString ( DeviceHandle handle, DeviceStringType type ) : string

Gets the device description string matching the given device handle and the given type.

Method Details

AllocateChannel() public abstract method

public abstract AllocateChannel ( ) : MidiChannel
return MidiChannel

CreateMidi() public static method

Create music driver matching the given device handle, or NULL if there is no match.
public static CreateMidi ( IMixer mixer, DeviceHandle handle ) : IMidiDriver
mixer IMixer
handle DeviceHandle Handle.
return IMidiDriver

DetectDevice() public static method

Returns the device handle based on the present devices and the flags parameter.
public static DetectDevice ( MusicDriverTypes flags, string selectedDevice ) : DeviceHandle
flags MusicDriverTypes Flags.
selectedDevice string The selected device
return DeviceHandle

Dispose() public method

public Dispose ( ) : void
return void

GetDeviceHandle() public static method

Find the music driver matching the given driver name/description.
public static GetDeviceHandle ( string identifier ) : DeviceHandle
identifier string Identifier.
return DeviceHandle

GetErrorName() public static method

Gets a text representation of an error code.
public static GetErrorName ( MidiDriverError errorCode ) : string
errorCode MidiDriverError Error code.
return string

GetMusicType() public static method

public static GetMusicType ( DeviceHandle handle ) : MusicType
handle DeviceHandle
return MusicType

GetPercussionChannel() public abstract method

public abstract GetPercussionChannel ( ) : MidiChannel
return MidiChannel

Open() public abstract method

Open the midi driver.
public abstract Open ( ) : MidiDriverError
return MidiDriverError

Property() public abstract method

Get or set a property.
public abstract Property ( int prop, int param ) : int
prop int Property.
param int Parameter.
return int

SendGmReset() public method

public SendGmReset ( ) : void
return void

SendMt32Reset() public method

public SendMt32Reset ( ) : void
return void

SetTimerCallback() public abstract method

public abstract SetTimerCallback ( object timerParam, TimerProc timerProc ) : void
timerParam object
timerProc TimerProc
return void

SysExCustomInstrument() public method

public SysExCustomInstrument ( byte channel, uint type, byte instr ) : void
channel byte
type uint
instr byte
return void

Property Details

Mt32ToGm public_oe static_oe property

public static byte[] Mt32ToGm
return byte[]