Sound Resource Manager. More...
#include <deSoundManager.h>
Public Member Functions | |
Constructors and Destructors | |
| deSoundManager (deEngine *engine) | |
| Creates a new sound resource manager linked to the given engine. | |
| virtual | ~deSoundManager () |
| Cleans up the sound resource manager and reports leaking resources. | |
Management | |
| int | GetSoundCount () const |
| retrieves the count of sounds. | |
| deSound * | GetSoundAt (int index) const |
| Retrieves the sound at the given index. | |
| deSound * | GetSoundWith (const char *filename) const |
| Retrieves the sound with the given filename or NULL if not loaded yet. | |
| deSound * | LoadSound (const char *filename, const char *basePath, bool streaming, bool asynchron) |
| Loads a sound from the given file relative to the given base path. | |
| void | SaveSound (deSound *sound, const char *filename) |
| Saves sound to the given file. | |
| deBaseSoundDecoder * | CreateDecoderFor (deSound *sound) |
| Creates a decoder for the given sound. | |
System Peer Management | |
| virtual void | SystemAudioLoad () |
| Audio System Peers of all stored resources have to be created. | |
| virtual void | SystemAudioUnload () |
| Audio System Peers of all stored resources have to be freed. | |
Resource only Functions | |
Those functions are only for resource objects and should never be called directly from an application. | |
| virtual void | RemoveResource (deResource *resource) |
| Removes the given resource from the manager without freeing it. | |
Sound Resource Manager.
| deSoundManager::deSoundManager | ( | deEngine * | engine ) |
Creates a new sound resource manager linked to the given engine.
| virtual deSoundManager::~deSoundManager | ( | ) | [virtual] |
Cleans up the sound resource manager and reports leaking resources.
| deBaseSoundDecoder* deSoundManager::CreateDecoderFor | ( | deSound * | sound ) |
Creates a decoder for the given sound.
| deSound* deSoundManager::GetSoundAt | ( | int | index ) | const |
Retrieves the sound at the given index.
| int deSoundManager::GetSoundCount | ( | ) | const |
retrieves the count of sounds.
| deSound* deSoundManager::GetSoundWith | ( | const char * | filename ) | const |
Retrieves the sound with the given filename or NULL if not loaded yet.
| deSound* deSoundManager::LoadSound | ( | const char * | filename, |
| const char * | basePath, | ||
| bool | streaming, | ||
| bool | asynchron | ||
| ) |
Loads a sound from the given file relative to the given base path.
| virtual void deSoundManager::RemoveResource | ( | deResource * | resource ) | [virtual] |
Removes the given resource from the manager without freeing it.
Implements deResourceManager.
| void deSoundManager::SaveSound | ( | deSound * | sound, |
| const char * | filename | ||
| ) |
Saves sound to the given file.
| virtual void deSoundManager::SystemAudioLoad | ( | ) | [virtual] |
Audio System Peers of all stored resources have to be created.
Reimplemented from deResourceManager.
| virtual void deSoundManager::SystemAudioUnload | ( | ) | [virtual] |
Audio System Peers of all stored resources have to be freed.
Reimplemented from deResourceManager.
1.7.2