C# Class NScumm.Core.Audio.Paula

Emulation of the "Paula" Amiga music chip The interrupt frequency specifies the number of mixed wavesamples between calls of the interrupt method
Inheritance: IAudioStream
ファイルを表示 Open project: scemino/nscumm

Protected Properties

Property Type Description
_mutex object

Private Properties

Property Type Description
CreateVoices Channel[]
GetChannelOffset Offset
MixBuffer int
ReadBufferIntern int

Public Methods

Method Description
ClearVoice ( int voice ) : void
ClearVoices ( ) : void
Dispose ( ) : void
PausePlay ( bool pause ) : void
ReadBuffer ( short buffer, int count ) : int
SetChannelData ( int channel, byte data, byte dataRepeat, int length, int lengthRepeat, int offset ) : void
SetChannelOffset ( int channel, Offset offset ) : void
SetChannelPanning ( int channel, byte panning ) : void
StartPlay ( ) : void
StopPlay ( ) : void

Protected Methods

Method Description
DisableChannel ( int channel ) : void
Dispose ( bool disposing ) : void
EnableChannel ( int channel ) : void
GetChannelDmaCount ( int channel ) : int
Interrupt ( ) : void
Paula ( bool stereo = false, int rate = 44100, uint interruptFreq ) : System
SetAudioFilter ( bool enable ) : void
SetChannelDmaCount ( int channel, int dmaVal ) : void
SetChannelPeriod ( int channel, short period ) : void
SetChannelSampleLen ( int channel, int length ) : void
SetChannelSampleStart ( int channel, byte data ) : void
SetChannelVolume ( int channel, byte volume ) : void
StartPaula ( ) : void
StopPaula ( ) : void

Private Methods

Method Description
CreateVoices ( ) : Channel[]
GetChannelOffset ( int channel ) : Offset
MixBuffer ( bool stereo, short buf, int &bufOffset, byte data, Offset offset, int rate, int neededSamples, int bufSize, byte volume, byte panning ) : int
ReadBufferIntern ( bool stereo, short buffer, int count ) : int

Method Details

ClearVoice() public method

public ClearVoice ( int voice ) : void
voice int
return void

ClearVoices() public method

public ClearVoices ( ) : void
return void

DisableChannel() protected method

protected DisableChannel ( int channel ) : void
channel int
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

EnableChannel() protected method

protected EnableChannel ( int channel ) : void
channel int
return void

GetChannelDmaCount() protected method

protected GetChannelDmaCount ( int channel ) : int
channel int
return int

Interrupt() protected abstract method

protected abstract Interrupt ( ) : void
return void

Paula() protected method

protected Paula ( bool stereo = false, int rate = 44100, uint interruptFreq ) : System
stereo bool
rate int
interruptFreq uint
return System

PausePlay() public method

public PausePlay ( bool pause ) : void
pause bool
return void

ReadBuffer() public method

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

SetAudioFilter() protected method

protected SetAudioFilter ( bool enable ) : void
enable bool
return void

SetChannelData() public method

public SetChannelData ( int channel, byte data, byte dataRepeat, int length, int lengthRepeat, int offset ) : void
channel int
data byte
dataRepeat byte
length int
lengthRepeat int
offset int
return void

SetChannelDmaCount() protected method

protected SetChannelDmaCount ( int channel, int dmaVal ) : void
channel int
dmaVal int
return void

SetChannelOffset() public method

public SetChannelOffset ( int channel, Offset offset ) : void
channel int
offset Offset
return void

SetChannelPanning() public method

public SetChannelPanning ( int channel, byte panning ) : void
channel int
panning byte
return void

SetChannelPeriod() protected method

protected SetChannelPeriod ( int channel, short period ) : void
channel int
period short
return void

SetChannelSampleLen() protected method

protected SetChannelSampleLen ( int channel, int length ) : void
channel int
length int
return void

SetChannelSampleStart() protected method

protected SetChannelSampleStart ( int channel, byte data ) : void
channel int
data byte
return void

SetChannelVolume() protected method

protected SetChannelVolume ( int channel, byte volume ) : void
channel int
volume byte
return void

StartPaula() protected method

protected StartPaula ( ) : void
return void

StartPlay() public method

public StartPlay ( ) : void
return void

StopPaula() protected method

protected StopPaula ( ) : void
return void

StopPlay() public method

public StopPlay ( ) : void
return void

Property Details

_mutex protected_oe property

protected object _mutex
return object