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
Afficher le fichier Open project: scemino/nscumm

Protected Properties

Свойство Type Description
_mutex object

Private Properties

Свойство Type Description
CreateVoices Channel[]
GetChannelOffset Offset
MixBuffer int
ReadBufferIntern int

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public ClearVoice ( int voice ) : void
voice int
Résultat void

ClearVoices() public méthode

public ClearVoices ( ) : void
Résultat void

DisableChannel() protected méthode

protected DisableChannel ( int channel ) : void
channel int
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EnableChannel() protected méthode

protected EnableChannel ( int channel ) : void
channel int
Résultat void

GetChannelDmaCount() protected méthode

protected GetChannelDmaCount ( int channel ) : int
channel int
Résultat int

Interrupt() protected abstract méthode

protected abstract Interrupt ( ) : void
Résultat void

Paula() protected méthode

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

PausePlay() public méthode

public PausePlay ( bool pause ) : void
pause bool
Résultat void

ReadBuffer() public méthode

public ReadBuffer ( short buffer, int count ) : int
buffer short
count int
Résultat int

SetAudioFilter() protected méthode

protected SetAudioFilter ( bool enable ) : void
enable bool
Résultat void

SetChannelData() public méthode

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
Résultat void

SetChannelDmaCount() protected méthode

protected SetChannelDmaCount ( int channel, int dmaVal ) : void
channel int
dmaVal int
Résultat void

SetChannelOffset() public méthode

public SetChannelOffset ( int channel, Offset offset ) : void
channel int
offset Offset
Résultat void

SetChannelPanning() public méthode

public SetChannelPanning ( int channel, byte panning ) : void
channel int
panning byte
Résultat void

SetChannelPeriod() protected méthode

protected SetChannelPeriod ( int channel, short period ) : void
channel int
period short
Résultat void

SetChannelSampleLen() protected méthode

protected SetChannelSampleLen ( int channel, int length ) : void
channel int
length int
Résultat void

SetChannelSampleStart() protected méthode

protected SetChannelSampleStart ( int channel, byte data ) : void
channel int
data byte
Résultat void

SetChannelVolume() protected méthode

protected SetChannelVolume ( int channel, byte volume ) : void
channel int
volume byte
Résultat void

StartPaula() protected méthode

protected StartPaula ( ) : void
Résultat void

StartPlay() public méthode

public StartPlay ( ) : void
Résultat void

StopPaula() protected méthode

protected StopPaula ( ) : void
Résultat void

StopPlay() public méthode

public StopPlay ( ) : void
Résultat void

Property Details

_mutex protected_oe property

protected object _mutex
Résultat object