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

Generic Amiga MOD mixer - provides a 60Hz 'update' routine.
Inheritance: IPlayerMod, IAudioStream
Exibir arquivo Open project: scemino/nscumm Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ClearUpdateProc ( ) : void
Dispose ( ) : void
Player_MOD ( IMixer mixer ) : System
ReadBuffer ( short buffer, int count ) : int
SetChannelFreq ( int id, int freq ) : void
SetChannelPan ( int id, sbyte pan ) : void
SetChannelVol ( int id, int vol ) : void
SetMusicVolume ( int vol ) : void
SetUpdateProc ( ModUpdateProc proc, int freq ) : void
StartChannel ( int id, byte data, int size, int rate, int vol, int loopStart, int loopEnd, int pan ) : void
StopChannel ( int id ) : void
do_mix ( short data, int len ) : void

Method Details

ClearUpdateProc() public method

public ClearUpdateProc ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Player_MOD() public method

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

ReadBuffer() public method

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

SetChannelFreq() public method

public SetChannelFreq ( int id, int freq ) : void
id int
freq int
return void

SetChannelPan() public method

public SetChannelPan ( int id, sbyte pan ) : void
id int
pan sbyte
return void

SetChannelVol() public method

public SetChannelVol ( int id, int vol ) : void
id int
vol int
return void

SetMusicVolume() public method

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

SetUpdateProc() public method

public SetUpdateProc ( ModUpdateProc proc, int freq ) : void
proc ModUpdateProc
freq int
return void

StartChannel() public method

public StartChannel ( int id, byte data, int size, int rate, int vol, int loopStart, int loopEnd, int pan ) : void
id int
data byte
size int
rate int
vol int
loopStart int
loopEnd int
pan int
return void

StopChannel() public method

public StopChannel ( int id ) : void
id int
return void

do_mix() public method

public do_mix ( short data, int len ) : void
data short
len int
return void