22 #ifndef FIFE_SOUNDCLIP_MANAGER_H 23 #define FIFE_SOUNDCLIP_MANAGER_H 144 virtual bool exists(
const std::string& name);
167 virtual void reload(
const std::string& name);
213 virtual void free(
const std::string& name);
282 virtual void remove(
const std::string& name);
373 #endif //FIFE_SOUNDCLIP_MANAGER_H virtual ~SoundClipManager()
Destructor.
virtual size_t getTotalResources() const
Returns the number of defined resources.
std::pair< ResourceHandle, SoundClipPtr > SoundClipHandleMapPair
virtual SoundClipPtr load(const std::string &name, IResourceLoader *loader=0)
Creates a blank resource and loads it from disk.
virtual size_t getMemoryUsed() const
Gets the total amount of memory used by resources.
virtual void freeAll()
Frees all SoundClips.
virtual void free(const std::string &name)
Frees a SoundClip from memory.
std::map< std::string, SoundClipPtr > SoundClipNameMap
std::size_t ResourceHandle
virtual size_t getTotalResourcesLoaded() const
Returns the number of loaded resources.
std::map< std::string, SoundClipPtr >::iterator SoundClipNameMapIterator
virtual ResourceHandle getResourceHandle(const std::string &name)
Gets a SoundClip handle by name.
SoundClipManager()
Default constructor.
std::map< ResourceHandle, SoundClipPtr >::iterator SoundClipHandleMapIterator
virtual void removeAll()
Removes all SoundClips from the manager.
virtual SoundClipPtr create(IResourceLoader *loader=0)
Creates a blank SoundClip but does not load it immediately.
virtual void loadUnreferenced()
Loads all unreferenced SoundClips.
virtual size_t getTotalResourcesCreated() const
Returns the number of unloaded resources.
SoundClipHandleMap m_sclipHandleMap
virtual void reload(const std::string &name)
Reloads a SoundClip.
virtual bool exists(const std::string &name)
Checks to see if a SoundClip exists.
virtual SoundClipPtr add(SoundClip *res)
Add an Image to the manager.
std::map< ResourceHandle, SoundClipPtr >::const_iterator SoundClipHandleMapConstIterator
std::pair< std::string, SoundClipPtr > SoundClipNameMapPair
std::map< std::string, SoundClipPtr >::const_iterator SoundClipNameMapConstIterator
virtual void reloadAll()
Reloads all SoundClips.
SoundClipNameMap m_sclipNameMap
virtual void removeUnreferenced()
Removes all unreferenced SoundClips.
virtual void freeUnreferenced()
Frees all unreferenced SoundClip.
std::map< ResourceHandle, SoundClipPtr > SoundClipHandleMap
Class to handle the buffers of an audio file.