C# Class NScumm.Core.Audio.SoftSynth.AdlibMidiDriver

Inheritance: EmulatedMidiDriver
Datei anzeigen Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
AdlibMidiDriver ( IMixer mixer ) : System
AllocateChannel ( ) : MidiChannel
GetPercussionChannel ( ) : MidiChannel
Open ( ) : MidiDriverError
Property ( int prop, int param ) : int
Send ( byte chan, uint b ) : void
Send ( int b ) : void
SysExCustomInstrument ( byte channel, uint type, byte instr ) : void
ToType ( string type ) : uint

Protected Methods

Method Description
GenerateSamples ( short buf, int pos, int len ) : void
OnTimer ( ) : void

Private Methods

Method Description
AdlibGetRegValue ( byte reg ) : byte
AdlibGetRegValueParam ( int chan, byte param ) : int
AdlibKeyOff ( int chan ) : void
AdlibKeyOnOff ( int channel ) : void
AdlibNoteOn ( int chan, byte note, int mod ) : void
AdlibNoteOnEx ( int chan, byte note, int mod ) : void
AdlibPlayNote ( int channel, int note ) : void
AdlibSetParam ( int channel, byte param, int value, bool primary = true ) : void
AdlibSetupChannel ( int chan, AdLibInstrument instr, byte vol1, byte vol2 ) : void
AdlibWrite ( byte reg, byte value ) : void
AllocateVoice ( byte pri ) : AdLibVoice
Close ( ) : void
CreateLookupTable ( ) : ].byte[
LinkMc ( AdLibPart part, AdLibVoice voice ) : void
LookupVolume ( int a, int b ) : int
McIncStuff ( AdLibVoice voice, Struct10 s10, Struct11 s11 ) : void
McInitStuff ( AdLibVoice voice, Struct10 s10, Struct11 s11, byte flags, InstrumentExtra ie ) : void
McKeyOn ( AdLibVoice voice, AdLibInstrument instr, byte note, byte velocity, AdLibInstrument second, byte pan ) : void
McOff ( AdLibVoice voice ) : void
PartKeyOff ( AdLibPart part, byte note ) : void
PartKeyOn ( AdLibPart part, AdLibInstrument instr, byte note, byte velocity, AdLibInstrument second, byte pan ) : void
RandomNr ( int a ) : int
SetPitchBendRange ( byte channel, uint range ) : void
Struct10Init ( Struct10 s10, InstrumentExtra ie ) : void
Struct10OnTimer ( Struct10 s10, Struct11 s11 ) : byte
Struct10Setup ( Struct10 s10 ) : void

Method Details

AdlibMidiDriver() public method

public AdlibMidiDriver ( IMixer mixer ) : System
mixer IMixer
return System

AllocateChannel() public method

public AllocateChannel ( ) : MidiChannel
return MidiChannel

GenerateSamples() protected method

protected GenerateSamples ( short buf, int pos, int len ) : void
buf short
pos int
len int
return void

GetPercussionChannel() public method

public GetPercussionChannel ( ) : MidiChannel
return MidiChannel

OnTimer() protected method

protected OnTimer ( ) : void
return void

Open() public method

public Open ( ) : MidiDriverError
return MidiDriverError

Property() public method

public Property ( int prop, int param ) : int
prop int
param int
return int

Send() public method

public Send ( byte chan, uint b ) : void
chan byte
b uint
return void

Send() public method

public Send ( int b ) : void
b int
return void

SysExCustomInstrument() public method

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

ToType() public static method

public static ToType ( string type ) : uint
type string
return uint