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

Scumm Macintosh music driver, base class.
Inheritance: IMusicEngine, IAudioStream
Mostrar archivo Open project: scemino/nscumm

Public Properties

Property Type Description
RES_SND uint

Protected Properties

Property Type Description
_channel Channel[]
_vm ScummEngine

Private Properties

Property Type Description
GetResSnd uint

Public Methods

Method Description
Dispose ( ) : void
GetMusicTimer ( ) : int
GetSoundStatus ( int nr ) : int
Init ( ) : void
Player_Mac ( ScummEngine scumm, IMixer mixer, int numberOfChannels, int channelMask, bool fadeNoteEnds ) : System
ReadBuffer ( short data, int count ) : int
SaveOrLoad ( Serializer ser ) : void
SetMusicVolume ( int vol ) : void
StartSound ( int nr ) : void
StopAllSounds ( ) : void
StopAllSounds_Internal ( ) : void
StopSound ( int nr ) : void

Protected Methods

Method Description
CheckMusicAvailable ( ) : bool
DurationToSamples ( ushort duration ) : uint
GetNextNote ( int ch, uint &samples, int &pitchModifier, byte &velocity ) : bool
LoadMusic ( byte ptr ) : bool
NoteToPitchModifier ( byte note, Instrument instrument ) : int

Private Methods

Method Description
GetResSnd ( ) : uint

Method Details

CheckMusicAvailable() protected method

protected CheckMusicAvailable ( ) : bool
return bool

Dispose() public method

public Dispose ( ) : void
return void

DurationToSamples() protected method

protected DurationToSamples ( ushort duration ) : uint
duration ushort
return uint

GetMusicTimer() public method

public GetMusicTimer ( ) : int
return int

GetNextNote() protected method

protected GetNextNote ( int ch, uint &samples, int &pitchModifier, byte &velocity ) : bool
ch int
samples uint
pitchModifier int
velocity byte
return bool

GetSoundStatus() public method

public GetSoundStatus ( int nr ) : int
nr int
return int

Init() public method

public Init ( ) : void
return void

LoadMusic() protected method

protected LoadMusic ( byte ptr ) : bool
ptr byte
return bool

NoteToPitchModifier() protected method

protected NoteToPitchModifier ( byte note, Instrument instrument ) : int
note byte
instrument Instrument
return int

Player_Mac() public method

public Player_Mac ( ScummEngine scumm, IMixer mixer, int numberOfChannels, int channelMask, bool fadeNoteEnds ) : System
scumm ScummEngine
mixer IMixer
numberOfChannels int
channelMask int
fadeNoteEnds bool
return System

ReadBuffer() public method

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

SaveOrLoad() public method

public SaveOrLoad ( Serializer ser ) : void
ser NScumm.Scumm.IO.Serializer
return void

SetMusicVolume() public method

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

StartSound() public method

public StartSound ( int nr ) : void
nr int
return void

StopAllSounds() public method

public StopAllSounds ( ) : void
return void

StopAllSounds_Internal() public method

public StopAllSounds_Internal ( ) : void
return void

StopSound() public method

public StopSound ( int nr ) : void
nr int
return void

Property Details

RES_SND public_oe static_oe property

public static uint RES_SND
return uint

_channel protected_oe property

protected Channel[] _channel
return Channel[]

_vm protected_oe property

protected ScummEngine _vm
return ScummEngine