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

Наследование: IMidiDriver
Показать файл Открыть проект

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

Метод Описание
MetaEvent ( byte type, byte data, ushort length ) : void
Send ( byte status, byte firstOp, byte secondOp ) : void

Output a midi command to the midi stream. Convenience wrapper around the usual 'packed' send method. Do NOT use this for sysEx transmission; instead, use the sysEx() method below.

Send ( int b ) : void

Output a packed midi command to the midi stream. The 'lowest' byte (i.e. b & 0xFF) is the status code, then come (if used) the first and second opcode.

SysEx ( byte msg, ushort length ) : void

Transmit a sysEx to the midi device. The given msg MUST NOT contain the usual SysEx frame, i.e. do NOT include the leading 0xF0 and the trailing 0xF7. Furthermore, the maximal supported length of a SysEx is 264 bytes. Passing longer buffers can lead to undefined behavior (most likely, a crash).

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

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

public MetaEvent ( byte type, byte data, ushort length ) : void
type byte
data byte
length ushort
Результат void

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

Output a midi command to the midi stream. Convenience wrapper around the usual 'packed' send method. Do NOT use this for sysEx transmission; instead, use the sysEx() method below.
public Send ( byte status, byte firstOp, byte secondOp ) : void
status byte Status.
firstOp byte First op.
secondOp byte Second op.
Результат void

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

Output a packed midi command to the midi stream. The 'lowest' byte (i.e. b & 0xFF) is the status code, then come (if used) the first and second opcode.
public abstract Send ( int b ) : void
b int The blue component.
Результат void

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

Transmit a sysEx to the midi device. The given msg MUST NOT contain the usual SysEx frame, i.e. do NOT include the leading 0xF0 and the trailing 0xF7. Furthermore, the maximal supported length of a SysEx is 264 bytes. Passing longer buffers can lead to undefined behavior (most likely, a crash).
public SysEx ( byte msg, ushort length ) : void
msg byte
length ushort
Результат void