C# Класс NScumm.Core.Audio.MidiDriver

Наследование: MidiDriverBase, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Mt32ToGm byte[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetDeviceString ( DeviceHandle handle, DeviceStringType type ) : string

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

Описание методов

AllocateChannel() публичный абстрактный Метод

public abstract AllocateChannel ( ) : MidiChannel
Результат MidiChannel

CreateMidi() публичный статический Метод

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.
Результат IMidiDriver

DetectDevice() публичный статический Метод

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
Результат DeviceHandle

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetDeviceHandle() публичный статический Метод

Find the music driver matching the given driver name/description.
public static GetDeviceHandle ( string identifier ) : DeviceHandle
identifier string Identifier.
Результат DeviceHandle

GetErrorName() публичный статический Метод

Gets a text representation of an error code.
public static GetErrorName ( MidiDriverError errorCode ) : string
errorCode MidiDriverError Error code.
Результат string

GetMusicType() публичный статический Метод

public static GetMusicType ( DeviceHandle handle ) : MusicType
handle DeviceHandle
Результат MusicType

GetPercussionChannel() публичный абстрактный Метод

public abstract GetPercussionChannel ( ) : MidiChannel
Результат MidiChannel

Open() публичный абстрактный Метод

Open the midi driver.
public abstract Open ( ) : MidiDriverError
Результат MidiDriverError

Property() публичный абстрактный Метод

Get or set a property.
public abstract Property ( int prop, int param ) : int
prop int Property.
param int Parameter.
Результат int

SendGmReset() публичный Метод

public SendGmReset ( ) : void
Результат void

SendMt32Reset() публичный Метод

public SendMt32Reset ( ) : void
Результат void

SetTimerCallback() публичный абстрактный Метод

public abstract SetTimerCallback ( object timerParam, TimerProc timerProc ) : void
timerParam object
timerProc TimerProc
Результат void

SysExCustomInstrument() публичный Метод

public SysExCustomInstrument ( byte channel, uint type, byte instr ) : void
channel byte
type uint
instr byte
Результат void

Описание свойств

Mt32ToGm публичное статическое свойство

public static byte[] Mt32ToGm
Результат byte[]