C# Class NScumm.Scumm.Audio.IMuse.Player

Inheritance: NScumm.Core.Audio.MidiDriverBase
Show file Open project: scemino/nscumm Class Usage Examples

Public Properties

Property Type Description
_se IMuseInternal

Protected Properties

Property Type Description
_active bool
_active_notes ushort[]
_detune sbyte
_hook HookDatas
_id int
_isMIDI bool
_isMT32 bool
_loop_counter uint
_loop_from_beat uint
_loop_from_tick uint
_loop_to_beat uint
_loop_to_tick uint
_midi NScumm.Core.Audio.MidiDriver
_music_tick uint
_note_offset int
_pan sbyte
_parameterFaders NScumm.Scumm.Audio.IMuse.ParameterFader[]
_parser NScumm.Core.MidiParser
_parts Part
_priority byte
_scanning bool
_speed byte
_supportsPercussion bool
_track_index int
_transpose sbyte
_vol_eff byte
_volume byte

Public Methods

Method Description
AddParameterFader ( ParameterFaderType param, int target, int time ) : int
Clear ( ) : void
ClearLoop ( ) : void
FixAfterLoad ( ) : void
GetActivePart ( byte chan ) : Part
GetBeatIndex ( ) : uint
GetEffectiveVolume ( ) : byte
GetMusicTimer ( ) : int
GetParam ( int param, byte chan ) : int
GetPart ( byte chan ) : Part
GetTicksPerBeat ( ) : uint
GetTranspose ( ) : sbyte
Jump ( uint track, uint beat, uint tick ) : bool
MaybeJump ( byte cmd, uint track, uint beat, uint tick ) : void
MaybePartOnOff ( byte data ) : void
MaybeSetProgram ( byte data ) : void
MaybeSetTranspose ( byte data ) : void
MaybeSetTransposePart ( byte data ) : void
MaybeSetVolume ( byte data ) : void
MetaEvent ( byte type, byte data, ushort length ) : void
OnTimer ( ) : void
Player ( ) : System
RemovePart ( Part part ) : void
SaveOrLoad ( Serializer ser ) : void
Scan ( uint totrack, uint tobeat, uint totick ) : int
Send ( int b ) : void
SetDetune ( int detune ) : void
SetHook ( byte cls, byte value, byte chan ) : int
SetLoop ( uint count, uint tobeat, uint totick, uint frombeat, uint fromtick ) : bool
SetOffsetNote ( int offset ) : void
SetPan ( int pan ) : void
SetPriority ( int pri ) : void
SetSpeed ( byte speed ) : void
SetTranspose ( byte relative, int b ) : int
SetVolume ( byte vol ) : int
StartSound ( int sound, MidiDriver midi ) : bool
SysEx ( byte msg, ushort length ) : void
TransposeClamp ( int a, int b, int c ) : int

Protected Methods

Method Description
HookClear ( ) : void
LoadStartParameters ( int sound ) : void
PartSetTranspose ( byte chan, byte relative, sbyte b ) : void
PlayActiveNotes ( ) : void
QueryPartParam ( int param, byte chan ) : int
StartSeqSound ( int sound, bool resetVars = true ) : int
TransitionParameters ( ) : void
TurnOffParts ( ) : void
TurnOffPedals ( ) : void
UninitParts ( ) : void

Private Methods

Method Description
Extract ( byte msg, int offset ) : byte[]

Method Details

AddParameterFader() public method

public AddParameterFader ( ParameterFaderType param, int target, int time ) : int
param ParameterFaderType
target int
time int
return int

Clear() public method

public Clear ( ) : void
return void

ClearLoop() public method

public ClearLoop ( ) : void
return void

FixAfterLoad() public method

public FixAfterLoad ( ) : void
return void

GetActivePart() public method

public GetActivePart ( byte chan ) : Part
chan byte
return Part

GetBeatIndex() public method

public GetBeatIndex ( ) : uint
return uint

GetEffectiveVolume() public method

public GetEffectiveVolume ( ) : byte
return byte

GetMusicTimer() public method

public GetMusicTimer ( ) : int
return int

GetParam() public method

public GetParam ( int param, byte chan ) : int
param int
chan byte
return int

GetPart() public method

public GetPart ( byte chan ) : Part
chan byte
return Part

GetTicksPerBeat() public method

public GetTicksPerBeat ( ) : uint
return uint

GetTranspose() public method

public GetTranspose ( ) : sbyte
return sbyte

HookClear() protected method

protected HookClear ( ) : void
return void

Jump() public method

public Jump ( uint track, uint beat, uint tick ) : bool
track uint
beat uint
tick uint
return bool

LoadStartParameters() protected method

protected LoadStartParameters ( int sound ) : void
sound int
return void

MaybeJump() public method

public MaybeJump ( byte cmd, uint track, uint beat, uint tick ) : void
cmd byte
track uint
beat uint
tick uint
return void

MaybePartOnOff() public method

public MaybePartOnOff ( byte data ) : void
data byte
return void

MaybeSetProgram() public method

public MaybeSetProgram ( byte data ) : void
data byte
return void

MaybeSetTranspose() public method

public MaybeSetTranspose ( byte data ) : void
data byte
return void

MaybeSetTransposePart() public method

public MaybeSetTransposePart ( byte data ) : void
data byte
return void

MaybeSetVolume() public method

public MaybeSetVolume ( byte data ) : void
data byte
return void

MetaEvent() public method

public MetaEvent ( byte type, byte data, ushort length ) : void
type byte
data byte
length ushort
return void

OnTimer() public method

public OnTimer ( ) : void
return void

PartSetTranspose() protected method

protected PartSetTranspose ( byte chan, byte relative, sbyte b ) : void
chan byte
relative byte
b sbyte
return void

PlayActiveNotes() protected method

protected PlayActiveNotes ( ) : void
return void

Player() public method

public Player ( ) : System
return System

QueryPartParam() protected method

protected QueryPartParam ( int param, byte chan ) : int
param int
chan byte
return int

RemovePart() public method

public RemovePart ( Part part ) : void
part Part
return void

SaveOrLoad() public method

public SaveOrLoad ( Serializer ser ) : void
ser NScumm.Scumm.IO.Serializer
return void

Scan() public method

public Scan ( uint totrack, uint tobeat, uint totick ) : int
totrack uint
tobeat uint
totick uint
return int

Send() public method

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

SetDetune() public method

public SetDetune ( int detune ) : void
detune int
return void

SetHook() public method

public SetHook ( byte cls, byte value, byte chan ) : int
cls byte
value byte
chan byte
return int

SetLoop() public method

public SetLoop ( uint count, uint tobeat, uint totick, uint frombeat, uint fromtick ) : bool
count uint
tobeat uint
totick uint
frombeat uint
fromtick uint
return bool

SetOffsetNote() public method

public SetOffsetNote ( int offset ) : void
offset int
return void

SetPan() public method

public SetPan ( int pan ) : void
pan int
return void

SetPriority() public method

public SetPriority ( int pri ) : void
pri int
return void

SetSpeed() public method

public SetSpeed ( byte speed ) : void
speed byte
return void

SetTranspose() public method

public SetTranspose ( byte relative, int b ) : int
relative byte
b int
return int

SetVolume() public method

public SetVolume ( byte vol ) : int
vol byte
return int

StartSeqSound() protected method

protected StartSeqSound ( int sound, bool resetVars = true ) : int
sound int
resetVars bool
return int

StartSound() public method

public StartSound ( int sound, MidiDriver midi ) : bool
sound int
midi NScumm.Core.Audio.MidiDriver
return bool

SysEx() public method

public SysEx ( byte msg, ushort length ) : void
msg byte
length ushort
return void

TransitionParameters() protected method

protected TransitionParameters ( ) : void
return void

TransposeClamp() public static method

public static TransposeClamp ( int a, int b, int c ) : int
a int
b int
c int
return int

TurnOffParts() protected method

protected TurnOffParts ( ) : void
return void

TurnOffPedals() protected method

protected TurnOffPedals ( ) : void
return void

UninitParts() protected method

protected UninitParts ( ) : void
return void

Property Details

_active protected property

protected bool _active
return bool

_active_notes protected static property

protected static ushort[] _active_notes
return ushort[]

_detune protected property

protected sbyte _detune
return sbyte

_hook protected property

protected HookDatas _hook
return HookDatas

_id protected property

protected int _id
return int

_isMIDI protected property

protected bool _isMIDI
return bool

_isMT32 protected property

protected bool _isMT32
return bool

_loop_counter protected property

protected uint _loop_counter
return uint

_loop_from_beat protected property

protected uint _loop_from_beat
return uint

_loop_from_tick protected property

protected uint _loop_from_tick
return uint

_loop_to_beat protected property

protected uint _loop_to_beat
return uint

_loop_to_tick protected property

protected uint _loop_to_tick
return uint

_midi protected property

protected MidiDriver,NScumm.Core.Audio _midi
return NScumm.Core.Audio.MidiDriver

_music_tick protected property

protected uint _music_tick
return uint

_note_offset protected property

protected int _note_offset
return int

_pan protected property

protected sbyte _pan
return sbyte

_parameterFaders protected property

protected ParameterFader[],NScumm.Scumm.Audio.IMuse _parameterFaders
return NScumm.Scumm.Audio.IMuse.ParameterFader[]

_parser protected property

protected MidiParser,NScumm.Core _parser
return NScumm.Core.MidiParser

_parts protected property

protected Part,NScumm.Scumm.Audio.IMuse _parts
return Part

_priority protected property

protected byte _priority
return byte

_scanning protected property

protected bool _scanning
return bool

_se public property

public IMuseInternal,NScumm.Scumm.Audio.IMuse _se
return IMuseInternal

_speed protected property

protected byte _speed
return byte

_supportsPercussion protected property

protected bool _supportsPercussion
return bool

_track_index protected property

protected int _track_index
return int

_transpose protected property

protected sbyte _transpose
return sbyte

_vol_eff protected property

protected byte _vol_eff
return byte

_volume protected property

protected byte _volume
return byte