C# Class NScumm.Scumm.Audio.IMuse.IMuseDigital.ImuseDigiSndMgr

显示文件 Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
CheckForTriggerByRegionAndMarker ( SoundDesc soundDesc, int region, string marker ) : bool
CloneSound ( SoundDesc soundDesc ) : SoundDesc
CloseSound ( SoundDesc soundDesc ) : void
GetBits ( SoundDesc soundDesc ) : int
GetChannels ( SoundDesc soundDesc ) : int
GetDataFromRegion ( SoundDesc soundDesc, int region, byte &buf, int offset, int size ) : int
GetFreq ( SoundDesc soundDesc ) : int
GetJumpFade ( SoundDesc soundDesc, int number ) : int
GetJumpHookId ( SoundDesc soundDesc, int number ) : int
GetJumpIdByRegionAndHookId ( SoundDesc soundDesc, int region, int hookId ) : int
GetNumRegions ( SoundDesc soundDesc ) : int
GetRegionIdByJumpId ( SoundDesc soundDesc, int jumpId ) : int
GetRegionOffset ( SoundDesc soundDesc, int region ) : int
GetSyncSizeAndPtrById ( SoundDesc soundDesc, int number, int &syncSize, byte &syncPtr ) : void
ImuseDigiSndMgr ( ScummEngine scumm ) : System
IsEndOfRegion ( SoundDesc soundDesc, int region ) : bool
IsSndDataExtComp ( SoundDesc soundDesc ) : bool
OpenSound ( int soundId, string soundName, int soundType, int volGroupId, int disk ) : SoundDesc
PrepareSound ( byte ptr, SoundDesc sound ) : void
PrepareSoundFromRMAP ( BinaryReader file, SoundDesc sound, int offset, int size ) : void

Private Methods

Method Description
AllocSlot ( ) : SoundDesc
CheckForProperHandle ( SoundDesc soundDesc ) : bool
CountElements ( byte ptr, int posPtr, int &numRegions, int &numJumps, int &numSyncs, int &numMarkers ) : void
CreateSounds ( ) : NScumm.Scumm.Audio.IMuse.IMuseDigital.SoundDesc[]
GetNumJumps ( SoundDesc soundDesc ) : int
OpenMusicBundle ( SoundDesc sound, int &disk ) : bool
OpenVoiceBundle ( SoundDesc sound, int &disk ) : bool

Method Details

CheckForTriggerByRegionAndMarker() public method

public CheckForTriggerByRegionAndMarker ( SoundDesc soundDesc, int region, string marker ) : bool
soundDesc SoundDesc
region int
marker string
return bool

CloneSound() public method

public CloneSound ( SoundDesc soundDesc ) : SoundDesc
soundDesc SoundDesc
return SoundDesc

CloseSound() public method

public CloseSound ( SoundDesc soundDesc ) : void
soundDesc SoundDesc
return void

GetBits() public method

public GetBits ( SoundDesc soundDesc ) : int
soundDesc SoundDesc
return int

GetChannels() public method

public GetChannels ( SoundDesc soundDesc ) : int
soundDesc SoundDesc
return int

GetDataFromRegion() public method

public GetDataFromRegion ( SoundDesc soundDesc, int region, byte &buf, int offset, int size ) : int
soundDesc SoundDesc
region int
buf byte
offset int
size int
return int

GetFreq() public method

public GetFreq ( SoundDesc soundDesc ) : int
soundDesc SoundDesc
return int

GetJumpFade() public method

public GetJumpFade ( SoundDesc soundDesc, int number ) : int
soundDesc SoundDesc
number int
return int

GetJumpHookId() public method

public GetJumpHookId ( SoundDesc soundDesc, int number ) : int
soundDesc SoundDesc
number int
return int

GetJumpIdByRegionAndHookId() public method

public GetJumpIdByRegionAndHookId ( SoundDesc soundDesc, int region, int hookId ) : int
soundDesc SoundDesc
region int
hookId int
return int

GetNumRegions() public method

public GetNumRegions ( SoundDesc soundDesc ) : int
soundDesc SoundDesc
return int

GetRegionIdByJumpId() public method

public GetRegionIdByJumpId ( SoundDesc soundDesc, int jumpId ) : int
soundDesc SoundDesc
jumpId int
return int

GetRegionOffset() public method

public GetRegionOffset ( SoundDesc soundDesc, int region ) : int
soundDesc SoundDesc
region int
return int

GetSyncSizeAndPtrById() public method

public GetSyncSizeAndPtrById ( SoundDesc soundDesc, int number, int &syncSize, byte &syncPtr ) : void
soundDesc SoundDesc
number int
syncSize int
syncPtr byte
return void

ImuseDigiSndMgr() public method

public ImuseDigiSndMgr ( ScummEngine scumm ) : System
scumm ScummEngine
return System

IsEndOfRegion() public method

public IsEndOfRegion ( SoundDesc soundDesc, int region ) : bool
soundDesc SoundDesc
region int
return bool

IsSndDataExtComp() public method

public IsSndDataExtComp ( SoundDesc soundDesc ) : bool
soundDesc SoundDesc
return bool

OpenSound() public method

public OpenSound ( int soundId, string soundName, int soundType, int volGroupId, int disk ) : SoundDesc
soundId int
soundName string
soundType int
volGroupId int
disk int
return SoundDesc

PrepareSound() public method

public PrepareSound ( byte ptr, SoundDesc sound ) : void
ptr byte
sound SoundDesc
return void

PrepareSoundFromRMAP() public method

public PrepareSoundFromRMAP ( BinaryReader file, SoundDesc sound, int offset, int size ) : void
file System.IO.BinaryReader
sound SoundDesc
offset int
size int
return void