|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLSOUND::CSampleBank Class ReferenceA set of samples.
More...
#include <sample_bank.h>
Inheritance diagram for NLSOUND::CSampleBank:
List of all members.
Detailed Description
A set of samples.
-
Author:
-
Peter Hanappe , Nevrax France
-
Date:
-
2001
Definition at line 64 of file sample_bank.h.
Member Typedef Documentation
typedef std::hash_map<std::string, CSampleBank*> NLSOUND::CSampleBank::TSampleBankContainer [private]
|
|
Constructor & Destructor Documentation
NLSOUND::CSampleBank::CSampleBank |
( |
const std::string & |
path, |
|
|
ISoundDriver * |
sd |
|
) |
|
|
NLSOUND::CSampleBank::~CSampleBank |
( |
|
) |
[virtual] |
|
Member Function Documentation
uint NLSOUND::CSampleBank::countSamples |
( |
|
) |
|
|
CSampleBank * NLSOUND::CSampleBank::findSampleBank |
( |
const std::string & |
filename |
) |
[static] |
|
|
Return an existing bank for the given file name, NULL if no bank for this file.
Definition at line 52 of file sample_bank.cpp.
References _Banks. |
IBuffer * NLSOUND::CSampleBank::get |
( |
const std::string & |
name |
) |
[static] |
|
|
Return the name corresponding to a name. The sample is searched.
Definition at line 64 of file sample_bank.cpp.
References _Banks. |
const std::string& NLSOUND::CSampleBank::getName |
( |
void |
|
) |
const [inline] |
|
const std::string& NLSOUND::CSampleBank::getPath |
( |
|
) |
const [inline] |
|
IBuffer * NLSOUND::CSampleBank::getSample |
( |
const std::string & |
name |
) |
|
|
uint NLSOUND::CSampleBank::getSize |
( |
|
) |
|
|
uint NLSOUND::CSampleBank::getTotalByteSize |
( |
|
) |
[inline, static] |
|
bool NLSOUND::CSampleBank::isLoaded |
( |
|
) |
|
|
|
Returns true if the samples in this bank have been loaded.
Definition at line 319 of file sample_bank.cpp.
References _Loaded. |
void NLSOUND::CSampleBank::load |
( |
bool |
async |
) |
|
|
|
Load all the samples.
Can throw EPathNotFound or ESoundFileNotFound (check Exception) -
Parameters:
-
async |
If true, the samples are loaded in background. |
Definition at line 147 of file sample_bank.cpp.
References _ByteSize, _Loaded, _LoadedSize, _LoadingDone, _LoadList, _Name, _Path, _Samples, _SoundDriver, _SplitLoadDone, NLSOUND::ASYNC_LOADING_SPLIT, nlassert, nldebug, and nlwarning. |
void NLSOUND::CSampleBank::onUpdate |
( |
|
) |
[private, virtual] |
|
void NLSOUND::CSampleBank::releaseAll |
( |
|
) |
[static] |
|
void NLSOUND::CSampleBank::reload |
( |
bool |
async |
) |
[static] |
|
bool NLSOUND::CSampleBank::unload |
( |
|
) |
|
|
Member Data Documentation
uint NLSOUND::CSampleBank::_ByteSize [private]
|
|
bool NLSOUND::CSampleBank::_Loaded [private]
|
|
uint NLSOUND::CSampleBank::_LoadedSize = 0 [static, private]
|
|
bool NLSOUND::CSampleBank::_LoadingDone [private]
|
|
std::list<std::pair<IBuffer *, std::string> > NLSOUND::CSampleBank::_LoadList [private]
|
|
std::string NLSOUND::CSampleBank::_Name [private]
|
|
std::string NLSOUND::CSampleBank::_Path [private]
|
|
bool NLSOUND::CSampleBank::_SplitLoadDone [private]
|
|
The documentation for this class was generated from the following files:
|
|