Planeshift
SoundFile Struct Reference

Class that contains the most important informations about a soundfile It contains the name, filename and if loaded the data. More...

#include <data.h>

Public Member Functions

 SoundFile (const char *newName, const char *newFileName)
 Constructs a SoundFile. More...
 
 SoundFile (SoundFile *const &copySoundFile)
 Copy constructor. More...
 
 SoundFile (const char *newname, const char *newfilename)
 Constructs a SoundFile. More...
 
 SoundFile (SoundFile *const &copythat)
 Copy Constructor. More...
 
 ~SoundFile ()
 Destructor. More...
 
 ~SoundFile ()
 Destructor. More...
 

Public Attributes

csString fileName
 File's name in our vfs. It doesn't need to be unique. More...
 
csString filename
 filename in our vfs (maybe not unique) More...
 
csTicks lastTouch
 Last time when this SoundFile was used/touched. More...
 
csTicks lasttouch
 last time when this SoundFile was used/touched More...
 
bool loaded
 true if snddata is loaded, false if not More...
 
csString name
 name of this file/resource MUST be unique More...
 
csRef< iSndSysData > sndData
 Data in suitable format. More...
 
csRef< iSndSysData > snddata
 data in suitable format More...
 

Detailed Description

Class that contains the most important informations about a soundfile It contains the name, filename and if loaded the data.

This struct keeps the information about a sound file.

its used by

See also
SoundData to manage our SoundFile(s).
SoundDataCache, the class that uses this struct.

Definition at line 109 of file data.h.

Constructor & Destructor Documentation

SoundFile::SoundFile ( const char *  newname,
const char *  newfilename 
)

Constructs a SoundFile.

Parameters
newnamename of this SoundFile (must be unique)
newfilenamefilename this SoundFile is using
SoundFile::SoundFile ( SoundFile *const &  copythat)

Copy Constructor.

Copys the whole SoundFile.

SoundFile::~SoundFile ( )

Destructor.

SoundFile::SoundFile ( const char *  newName,
const char *  newFileName 
)

Constructs a SoundFile.

Parameters
newNameidentifier of this SoundFile (must be unique).
newFileNamefile's name this SoundFile is using.
SoundFile::SoundFile ( SoundFile *const &  copySoundFile)

Copy constructor.

It copies the whole SoundFile.

Parameters
copySoundFileSoundFile to copy.
SoundFile::~SoundFile ( )

Destructor.

Member Data Documentation

csString SoundFile::fileName

File's name in our vfs. It doesn't need to be unique.

Definition at line 50 of file data.h.

csString SoundFile::filename

filename in our vfs (maybe not unique)

Definition at line 113 of file data.h.

csTicks SoundFile::lastTouch

Last time when this SoundFile was used/touched.

Definition at line 52 of file data.h.

csTicks SoundFile::lasttouch

last time when this SoundFile was used/touched

Definition at line 116 of file data.h.

bool SoundFile::loaded

true if snddata is loaded, false if not

Definition at line 115 of file data.h.

csString SoundFile::name

name of this file/resource MUST be unique

Identifier of this file/resource. MUST be unique.

Definition at line 112 of file data.h.

csRef<iSndSysData> SoundFile::sndData

Data in suitable format.

Definition at line 51 of file data.h.

csRef<iSndSysData> SoundFile::snddata

data in suitable format

Definition at line 114 of file data.h.


The documentation for this struct was generated from the following file: