C# Class Ultima.Sounds

Mostra file Open project: polserver/poltools

Public Methods

Method Description
Add ( int id, string name, string file ) : void
GetSound ( int soundID ) : UOSound

Returns UOSound of ID

GetSound ( int soundID, bool &translated ) : UOSound

Returns UOSound of ID with bool translated in .def

GetSoundLength ( int soundID ) : double

Returns length of SoundID

Initialize ( ) : void

Reads Sounds and def

IsValidSound ( int soundID, string &name ) : bool

Returns Soundname and tests if valid

Remove ( int id ) : void
Save ( string path ) : void
SaveSoundListToCSV ( string FileName ) : void

Private Methods

Method Description
Sounds ( ) : System
WaveHeader ( int length ) : int[]

Method Details

Add() public static method

public static Add ( int id, string name, string file ) : void
id int
name string
file string
return void

GetSound() public static method

Returns UOSound of ID
public static GetSound ( int soundID ) : UOSound
soundID int
return UOSound

GetSound() public static method

Returns UOSound of ID with bool translated in .def
public static GetSound ( int soundID, bool &translated ) : UOSound
soundID int
translated bool
return UOSound

GetSoundLength() public static method

Returns length of SoundID
public static GetSoundLength ( int soundID ) : double
soundID int
return double

Initialize() public static method

Reads Sounds and def
public static Initialize ( ) : void
return void

IsValidSound() public static method

Returns Soundname and tests if valid
public static IsValidSound ( int soundID, string &name ) : bool
soundID int
name string
return bool

Remove() public static method

public static Remove ( int id ) : void
id int
return void

Save() public static method

public static Save ( string path ) : void
path string
return void

SaveSoundListToCSV() public static method

public static SaveSoundListToCSV ( string FileName ) : void
FileName string
return void