C# Class NScumm.Scumm.Sound

Inheritance: ISoundRepository
Afficher le fichier Open project: scemino/nscumm Class Usage Examples

Méthodes publiques

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

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

public AddSoundToQueue ( int sound ) : void
sound int
Résultat void

IsSoundInUse() public méthode

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

IsSoundRunning() public méthode

public IsSoundRunning ( int snd ) : bool
snd int
Résultat bool

OnCDTimer() public méthode

public OnCDTimer ( object sender ) : void
sender object
Résultat void

PauseSounds() public méthode

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

PlayCDTrack() public méthode

public PlayCDTrack ( int track, int numLoops, int startFrame, int duration ) : void
track int
numLoops int
startFrame int
duration int
Résultat void

PlaySound() public méthode

public PlaySound ( int soundID ) : void
soundID int
Résultat void

PollCD() public méthode

public PollCD ( ) : int
Résultat int

ProcessSfxQueues() public méthode

public ProcessSfxQueues ( ) : void
Résultat void

ProcessSound() public méthode

public ProcessSound ( ) : void
Résultat void

ProcessSoundQueue() public méthode

public ProcessSoundQueue ( ) : void
Résultat void

SaveOrLoad() public méthode

public SaveOrLoad ( Serializer serializer ) : void
serializer NScumm.Scumm.IO.Serializer
Résultat void

SetupSfxFile() public méthode

public SetupSfxFile ( ) : void
Résultat void

SetupSound() public méthode

public SetupSound ( ) : void
Résultat void

Sound() public méthode

public Sound ( ScummEngine vm, IMixer mixer ) : System
vm ScummEngine
mixer IMixer
Résultat System

SoundKludge() public méthode

public SoundKludge ( int items ) : void
items int
Résultat void

StartCDTimer() public méthode

public StartCDTimer ( ) : void
Résultat void

StopAllSounds() public méthode

public StopAllSounds ( ) : void
Résultat void

StopCD() public méthode

public StopCD ( ) : void
Résultat void

StopCDTimer() public méthode

public StopCDTimer ( ) : void
Résultat void

StopSound() public méthode

public StopSound ( int sound ) : void
sound int
Résultat void

StopTalkSound() public méthode

public StopTalkSound ( ) : void
Résultat void

TalkSound() public méthode

public TalkSound ( int a, int b, int mode, int channel ) : void
a int
b int
mode int
channel int
Résultat void