C# 클래스 NScumm.Core.Audio.MidiDriverBase

상속: IMidiDriver
파일 보기 프로젝트 열기: scemino/nscumm

공개 메소드들

메소드 설명
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