deSoundManager Class Reference

Sound Resource Manager. More...

#include <deSoundManager.h>

Inheritance diagram for deSoundManager:
deFileResourceManager deResourceManager

List of all members.

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.
deSoundGetSoundAt (int index) const
 Retrieves the sound at the given index.
deSoundGetSoundWith (const char *filename) const
 Retrieves the sound with the given filename or NULL if not loaded yet.
deSoundLoadSound (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.
deBaseSoundDecoderCreateDecoderFor (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.

Detailed Description

Sound Resource Manager.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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