UGDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
ugdk::AudioManager Class Reference

#include <audiomanager.h>

List of all members.

Public Member Functions

 AudioManager ()
 ~AudioManager ()
bool Initialize ()
 Initializes audio channels.
bool Release ()
 Frees all audio samples and music, and closes the audio channels.
void Update ()
 Logical update. Currently does nothing.
SampleLoadSample (const std::string &filepath)
 Loads an audio sample.
MusicLoadMusic (const std::string &filepath)
 Loads a music.
MusicCurrentMusic () const
 Getter for the music that is currently playing.

Constructor & Destructor Documentation


Member Function Documentation

Getter for the music that is currently playing.

Returns:
NULL is no music is currently playing, a Music* otherwise.

Initializes audio channels.

Returns:
True if successful, false otherwise.
Music * ugdk::AudioManager::LoadMusic ( const std::string &  filepath)

Loads a music.

Parameters:
filepathThe path to the music file.
Sample * ugdk::AudioManager::LoadSample ( const std::string &  filepath)

Loads an audio sample.

Parameters:
filepathThe path to the audio sample.

Frees all audio samples and music, and closes the audio channels.

Returns:
True if successfull, false otherwise.

Logical update. Currently does nothing.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines