C# Class NScumm.Core.Audio.OPL.DosBox.DosBoxOPL.Channel

Exibir arquivo Open project: scemino/nscumm

Public Methods

Method Description
Channel ( Chip chip, int index )
GeneratePercussion ( bool opl3Mode, Chip chip, int output, int pos ) : void
ResetC0 ( Chip chip ) : void
SetChanData ( Chip chip, int data ) : void

Forward the channel data to the operators of the channel.

SynthHandler ( Chip chip, uint samples, int output, int pos ) : Channel
UpdateFrequency ( Chip chip, byte fourOp ) : void

Change in the chandata, check for new values and if we have to forward to operators.

WriteA0 ( Chip chip, byte val ) : void
WriteB0 ( Chip chip, byte val ) : void
WriteC0 ( Chip chip, byte val ) : void

Private Methods

Method Description
BlockTemplate ( SynthMode mode, Chip chip, uint samples, int output, int pos ) : Channel

Generate blocks of data in specific modes.

Op ( uint index ) : Operator

Method Details

Channel() public method

public Channel ( Chip chip, int index )
chip Chip
index int

GeneratePercussion() public method

public GeneratePercussion ( bool opl3Mode, Chip chip, int output, int pos ) : void
opl3Mode bool
chip Chip
output int
pos int
return void

ResetC0() public method

public ResetC0 ( Chip chip ) : void
chip Chip
return void

SetChanData() public method

Forward the channel data to the operators of the channel.
public SetChanData ( Chip chip, int data ) : void
chip Chip Chip.
data int Data.
return void

SynthHandler() public method

public SynthHandler ( Chip chip, uint samples, int output, int pos ) : Channel
chip Chip
samples uint
output int
pos int
return Channel

UpdateFrequency() public method

Change in the chandata, check for new values and if we have to forward to operators.
public UpdateFrequency ( Chip chip, byte fourOp ) : void
chip Chip Chip.
fourOp byte Four op.
return void

WriteA0() public method

public WriteA0 ( Chip chip, byte val ) : void
chip Chip
val byte
return void

WriteB0() public method

public WriteB0 ( Chip chip, byte val ) : void
chip Chip
val byte
return void

WriteC0() public method

public WriteC0 ( Chip chip, byte val ) : void
chip Chip
val byte
return void