C# Class NScumm.Scumm.Sound

Inheritance: ISoundRepository
Datei anzeigen Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
AddSoundToQueue ( int sound ) : void
IsSoundInUse ( int sound ) : bool

Check whether the sound resource with the specified ID is still used.This is invoked by ScummEngine::isResourceInUse, to determine which resources can be expired from memory. Technically, this works very similar to isSoundRunning, however it calls IMuse::get_sound_active() instead of IMuse::getSoundStatus(). The difference between those two is in how they treat sounds which are being faded out: get_sound_active() returns true even when the sound is being faded out, while getSoundStatus() returns false in that case.

IsSoundRunning ( int snd ) : bool
OnCDTimer ( object sender ) : void
PauseSounds ( bool pause ) : void
PlayCDTrack ( int track, int numLoops, int startFrame, int duration ) : void
PlaySound ( int soundID ) : void
PollCD ( ) : int
ProcessSfxQueues ( ) : void
ProcessSound ( ) : void
ProcessSoundQueue ( ) : void
SaveOrLoad ( Serializer serializer ) : void
SetupSfxFile ( ) : void
SetupSound ( ) : void
Sound ( ScummEngine vm, IMixer mixer ) : System
SoundKludge ( int items ) : void
StartCDTimer ( ) : void
StopAllSounds ( ) : void
StopCD ( ) : void
StopCDTimer ( ) : void
StopSound ( int sound ) : void
StopTalkSound ( ) : void
TalkSound ( int a, int b, int mode, int channel ) : void

Private Methods

Method Description
ISoundRepository ( int id ) : byte[]
IsMouthSyncOff ( int pos ) : bool
IsSfxFinished ( ) : bool
IsSoundInQueue ( int sound ) : bool
StartTalkSound ( int offset, int b, int mode ) : SoundHandle

Method Details

AddSoundToQueue() public method

public AddSoundToQueue ( int sound ) : void
sound int
return void

IsSoundInUse() public method

Check whether the sound resource with the specified ID is still used.This is invoked by ScummEngine::isResourceInUse, to determine which resources can be expired from memory. Technically, this works very similar to isSoundRunning, however it calls IMuse::get_sound_active() instead of IMuse::getSoundStatus(). The difference between those two is in how they treat sounds which are being faded out: get_sound_active() returns true even when the sound is being faded out, while getSoundStatus() returns false in that case.
public IsSoundInUse ( int sound ) : bool
sound int
return bool

IsSoundRunning() public method

public IsSoundRunning ( int snd ) : bool
snd int
return bool

OnCDTimer() public method

public OnCDTimer ( object sender ) : void
sender object
return void

PauseSounds() public method

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

PlayCDTrack() public method

public PlayCDTrack ( int track, int numLoops, int startFrame, int duration ) : void
track int
numLoops int
startFrame int
duration int
return void

PlaySound() public method

public PlaySound ( int soundID ) : void
soundID int
return void

PollCD() public method

public PollCD ( ) : int
return int

ProcessSfxQueues() public method

public ProcessSfxQueues ( ) : void
return void

ProcessSound() public method

public ProcessSound ( ) : void
return void

ProcessSoundQueue() public method

public ProcessSoundQueue ( ) : void
return void

SaveOrLoad() public method

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

SetupSfxFile() public method

public SetupSfxFile ( ) : void
return void

SetupSound() public method

public SetupSound ( ) : void
return void

Sound() public method

public Sound ( ScummEngine vm, IMixer mixer ) : System
vm ScummEngine
mixer IMixer
return System

SoundKludge() public method

public SoundKludge ( int items ) : void
items int
return void

StartCDTimer() public method

public StartCDTimer ( ) : void
return void

StopAllSounds() public method

public StopAllSounds ( ) : void
return void

StopCD() public method

public StopCD ( ) : void
return void

StopCDTimer() public method

public StopCDTimer ( ) : void
return void

StopSound() public method

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

StopTalkSound() public method

public StopTalkSound ( ) : void
return void

TalkSound() public method

public TalkSound ( int a, int b, int mode, int channel ) : void
a int
b int
mode int
channel int
return void