#include <async_file_manager_sound.h>
Nevrax France
Definition at line 42 of file async_file_manager_sound.h.
Public Member Functions | |
void | cancelLoadWaveFile (const std::string &filename) |
void | cancelSignal (bool *pSgn) |
void | loadFile (const std::string &fileName, uint8 **pPtr) |
void | loadFiles (const std::vector< std::string > &vFileNames, const std::vector< uint8 ** > &vPtrs) |
void | loadWavFile (IBuffer *pdestBuffer, const std::string &filename) |
void | signal (bool *pSgn) |
void | terminate () |
Static Public Member Functions | |
CAsyncFileManagerSound & | getInstance () |
Private Member Functions | |
CAsyncFileManagerSound () | |
Constructor. | |
Static Private Attributes | |
CAsyncFileManagerSound * | _Singleton |
Singleton instance. | |
Friends | |
class | CCancelLoadWavFile |
A non exported class for load canceling purpose. |
|
Constructor.
Definition at line 61 of file async_file_manager_sound.h. Referenced by getInstance().
00061 {}; |
|
Definition at line 91 of file async_file_manager_sound.cpp. References nlwarning.
00092 { 00093 nlwarning("CAsyncFileManagerSound::cancelLoadWaveFile : not implemented yet !"); 00094 // CAsyncFileManager::getInstance().cancelLoadTask(CCancelLoadWavFile(filename)); 00095 } |
|
Definition at line 125 of file async_file_manager_sound.cpp. References nlwarning.
00126 { 00127 if (pSgn == 0) 00128 { 00129 nlwarning("CAsyncFileManagerSound::cancelSignal : trying to remove a signal with a null pointer !"); 00130 return; 00131 } 00132 CAsyncFileManager::getInstance().cancelSignal(pSgn); 00133 } |
|
Definition at line 42 of file async_file_manager_sound.cpp. References CAsyncFileManagerSound(). Referenced by terminate().
00043 { 00044 NL_ALLOC_CONTEXT(NLSOUND_CAsyncFileManagerSound); 00045 if (_Singleton == NULL) 00046 { 00047 _Singleton = new CAsyncFileManagerSound(); 00048 } 00049 return *_Singleton; 00050 } |
|
Definition at line 99 of file async_file_manager_sound.cpp. References uint8.
00100 { 00101 CAsyncFileManager::getInstance().loadFile(fileName, pPtr); 00102 } |
|
Definition at line 104 of file async_file_manager_sound.cpp. References nlwarning.
00105 { 00106 if (vFileNames.size() != vPtrs.size()) 00107 { 00108 nlwarning("CAsyncFileManagerSound::loadFiles : number of filenames and pointer differ ! (%u file, %u ptr)", vFileNames.size(), vPtrs.size()); 00109 // ignore load request... 00110 return; 00111 } 00112 CAsyncFileManager::getInstance().loadFiles(vFileNames, vPtrs); 00113 } |
|
Definition at line 62 of file async_file_manager_sound.cpp.
00063 {
00064 NL_ALLOC_CONTEXT(NLSOUND_CAsyncFileManagerSound);
00065 CAsyncFileManager::getInstance().addLoadTask(new CLoadWavFile(pdestBuffer, filename));
00066 }
|
|
Definition at line 115 of file async_file_manager_sound.cpp. References nlwarning.
00116 { 00117 if (pSgn == 0) 00118 { 00119 nlwarning("CAsyncFileManagerSound::signal : trying to signal with a null pointer !"); 00120 return; 00121 } 00122 CAsyncFileManager::getInstance().signal(pSgn); 00123 } |
|
Definition at line 53 of file async_file_manager_sound.cpp. References getInstance().
00054 { 00055 if (_Singleton != NULL) 00056 { 00057 delete &getInstance(); 00058 _Singleton = NULL; 00059 } 00060 } |
|
A non exported class for load canceling purpose.
Definition at line 68 of file async_file_manager_sound.h. |
|
Singleton instance.
Definition at line 39 of file async_file_manager_sound.cpp. |