C# Class NScumm.Core.Audio.PCSpeakerDriver

Inheritance: NScumm.Core.Audio.SoftSynth.EmulatedMidiDriver
显示文件 Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
AllocateChannel ( ) : MidiChannel
Close ( ) : void
GetPercussionChannel ( ) : MidiChannel
Open ( ) : MidiDriverError
PCSpeakerDriver ( IMixer mixer ) : NScumm.Core.Audio.SoftSynth
Property ( int prop, int param ) : int
Send ( int b ) : void

Protected Methods

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

Private Methods

Method Description
GetEffectModLevel ( short level, sbyte mod ) : short
GetEffectModifier ( ushort level ) : byte
GetRandScale ( short input ) : short
InitNextEnvelopeState ( EffectEnvelope env ) : void
Output ( ushort output ) : void
SetupEffects ( MidiChannelPcSpk chan, EffectEnvelope env, EffectDefinition def, byte flags, byte data, int offset ) : void
StartEffect ( EffectEnvelope env, byte data, int offset ) : void
UpdateNote ( ) : void

Method Details

AllocateChannel() public method

public AllocateChannel ( ) : MidiChannel
return MidiChannel

Close() public method

public Close ( ) : void
return void

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

Open() public method

public Open ( ) : MidiDriverError
return MidiDriverError

PCSpeakerDriver() public method

public PCSpeakerDriver ( IMixer mixer ) : NScumm.Core.Audio.SoftSynth
mixer IMixer
return NScumm.Core.Audio.SoftSynth

Property() public method

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

Send() public method

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