C# Class NScumm.Scumm.Audio.Players.Player_AD

Inheritance: IAudioStream, IMusicEngine
Exibir arquivo Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
ClearChannel ( Channel channel ) : void
Dispose ( ) : void
FreeHWChannel ( int channel ) : void
FreeVoiceChannel ( int channel ) : void
GetMusicTimer ( ) : int
GetSoundStatus ( int sound ) : int
LimitHWChannels ( int newCount ) : void
MusicSeekTo ( uint position ) : void
NoteOff ( int channel ) : void
NoteOffOn ( int channel ) : void
ParseNote ( Note note, Channel channel, int offset ) : void
ParseSlot ( Channel channel ) : void
Player_AD ( ScummEngine scumm, IMixer mixer ) : System
ReadBuffer ( short buffer, int len ) : int
SaveOrLoad ( Serializer ser ) : void
SetMusicVolume ( int vol ) : void
SetupChannel ( int channel, byte musicData, int instrOffset ) : void
SetupFrequency ( int channel, sbyte frequency ) : void
SetupNoteEnvelopeState ( Note note, int steps, int adjust ) : void
SetupOperator ( int opr, byte musicData, int &instrOffset ) : void
SetupRhythm ( uint rhythmInstr, int instrOffset ) : void
SetupVolume ( ) : void
StartMusic ( ) : void
StartSound ( int sound ) : void
StopAllSounds ( ) : void
StopMusic ( ) : void
StopSfx ( SfxSlot sfx ) : void
StopSound ( int sound ) : void
UpdateChannel ( Channel channel ) : void
UpdateMusic ( ) : void
UpdateSfx ( ) : void
UpdateSlot ( Channel channel ) : void
WriteReg ( int r, int v ) : void
WriteRegisterSpecial ( int channel, byte value, int offset ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AllocateHWChannel ( int priority, SfxSlot owner = null ) : int
AllocateSfxSlot ( int priority ) : SfxSlot
GetRnd ( ) : byte
ParseCommand ( ) : bool
ParseVLQ ( ) : uint
ProcessNote ( Note note, Channel channel, int offset ) : bool
ProcessNoteEnvelope ( Note note ) : bool
ReadReg ( int r ) : byte
ReadRegisterSpecial ( int channel, byte defaultValue, int offset ) : byte
StartSfx ( SfxSlot sfx, byte resource ) : bool

Method Details

ClearChannel() public method

public ClearChannel ( Channel channel ) : void
channel Channel
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FreeHWChannel() public method

public FreeHWChannel ( int channel ) : void
channel int
return void

FreeVoiceChannel() public method

public FreeVoiceChannel ( int channel ) : void
channel int
return void

GetMusicTimer() public method

public GetMusicTimer ( ) : int
return int

GetSoundStatus() public method

public GetSoundStatus ( int sound ) : int
sound int
return int

LimitHWChannels() public method

public LimitHWChannels ( int newCount ) : void
newCount int
return void

MusicSeekTo() public method

public MusicSeekTo ( uint position ) : void
position uint
return void

NoteOff() public method

public NoteOff ( int channel ) : void
channel int
return void

NoteOffOn() public method

public NoteOffOn ( int channel ) : void
channel int
return void

ParseNote() public method

public ParseNote ( Note note, Channel channel, int offset ) : void
note Note
channel Channel
offset int
return void

ParseSlot() public method

public ParseSlot ( Channel channel ) : void
channel Channel
return void

Player_AD() public method

public Player_AD ( ScummEngine scumm, IMixer mixer ) : System
scumm ScummEngine
mixer IMixer
return System

ReadBuffer() public method

public ReadBuffer ( short buffer, int len ) : int
buffer short
len int
return int

SaveOrLoad() public method

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

SetMusicVolume() public method

public SetMusicVolume ( int vol ) : void
vol int
return void

SetupChannel() public method

public SetupChannel ( int channel, byte musicData, int instrOffset ) : void
channel int
musicData byte
instrOffset int
return void

SetupFrequency() public method

public SetupFrequency ( int channel, sbyte frequency ) : void
channel int
frequency sbyte
return void

SetupNoteEnvelopeState() public method

public SetupNoteEnvelopeState ( Note note, int steps, int adjust ) : void
note Note
steps int
adjust int
return void

SetupOperator() public method

public SetupOperator ( int opr, byte musicData, int &instrOffset ) : void
opr int
musicData byte
instrOffset int
return void

SetupRhythm() public method

public SetupRhythm ( uint rhythmInstr, int instrOffset ) : void
rhythmInstr uint
instrOffset int
return void

SetupVolume() public method

public SetupVolume ( ) : void
return void

StartMusic() public method

public StartMusic ( ) : void
return void

StartSound() public method

public StartSound ( int sound ) : void
sound int
return void

StopAllSounds() public method

public StopAllSounds ( ) : void
return void

StopMusic() public method

public StopMusic ( ) : void
return void

StopSfx() public method

public StopSfx ( SfxSlot sfx ) : void
sfx SfxSlot
return void

StopSound() public method

public StopSound ( int sound ) : void
sound int
return void

UpdateChannel() public method

public UpdateChannel ( Channel channel ) : void
channel Channel
return void

UpdateMusic() public method

public UpdateMusic ( ) : void
return void

UpdateSfx() public method

public UpdateSfx ( ) : void
return void

UpdateSlot() public method

public UpdateSlot ( Channel channel ) : void
channel Channel
return void

WriteReg() public method

public WriteReg ( int r, int v ) : void
r int
v int
return void

WriteRegisterSpecial() public method

public WriteRegisterSpecial ( int channel, byte value, int offset ) : void
channel int
value byte
offset int
return void