Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

ExManagerSound Class Reference

#include <ExManagerSound.h>


Public Methods

 ExManagerSound (void)
 ~ExManagerSound (void)
void SetManagerId (ExManagerId *Id)
bool Init (void)
void DisplayAviableInput (void)
void ListAllSound (void)
bool LoadSound (std::string)
bool RemoveSound (std::string)
void PlaySound (std::string)
void StopSound (std::string)
int GetSound (std::string)
void Reset (void)

Data Fields

std::ostrstream * Consol
void(* WriteToConsol )(const char *Label)

Private Attributes

ExManagerIdManagerId
ALCcontext * context_id
ALCdevice * dev


Constructor & Destructor Documentation

ExManagerSound void   
 

Definition at line 26 of file ExManagerSound.cpp.

00026                                     {
00027 
00028 }

~ExManagerSound void   
 

Definition at line 30 of file ExManagerSound.cpp.

References context_id.

00030                                      {
00031         alcDestroyContext (context_id);
00032 }


Member Function Documentation

void DisplayAviableInput void   
 

Definition at line 54 of file ExManagerSound.cpp.

References Consol, DisplayAviableInput(), Guard, and UnGuard.

Referenced by DisplayAviableInput(), and main().

00054                                               {
00055 Guard (void ExManagerSound::DisplayAviableInput (void))
00056         *Consol<<"****************************************"<<std::endl;
00057         *Consol<<"*Checking for Audio                    *"<<std::endl;
00058         *Consol<<"****************************************"<<std::endl;
00059         *Consol<<"Company        : "<<alGetString (AL_VENDOR)<<std::endl;
00060         *Consol<<"Version        : "<<alGetString (AL_VERSION)<<std::endl;
00061         *Consol<<"Renderer       : "<<alGetString (AL_RENDERER)<<std::endl;
00062         *Consol<<"Extensions     : "<<alGetString (AL_EXTENSIONS)<<std::endl;
00063         if (alIsExtensionPresent ((ALubyte*) "AL_LOKI_attenuation_scale")) 
00064         {
00065                 *Consol<<"Found AL_LOKI_attenuation_scale"<<std::endl;
00066         }
00067 UnGuard
00068 }

int GetSound std::string   
 

Definition at line 87 of file ExManagerSound.cpp.

References GetSound(), Guard, and UnGuard.

Referenced by GetSound().

00087                                             {
00088 Guard (ExCSound* ExManagerSound::GetSound (std::string file))
00089         return -1;
00090 UnGuard
00091 }

bool Init void   
 

Definition at line 34 of file ExManagerSound.cpp.

References Consol, context_id, dev, Guard, and UnGuard.

Referenced by InitManager().

00034                                {
00035 Guard (void ExManagerSound::init (void))
00036 
00037         dev = alcOpenDevice (NULL);
00038         if (dev == NULL) {
00039                 *Consol<<"Can not initialize Audio device"<<std::endl;
00040                 return false;
00041         }
00042         
00043         context_id = alcCreateContext (dev, NULL);
00044         if (context_id == NULL) {
00045                 alcCloseDevice (dev);
00046                 *Consol<<"Can not initialize Audio device"<<std::endl;
00047                 return false;
00048         }
00049 
00050 UnGuard
00051 return true;
00052 }       

void ListAllSound void   
 

Definition at line 99 of file ExManagerSound.cpp.

References Guard, ListAllSound(), and UnGuard.

Referenced by ListAllSound(), and ExManagerCommand::ProcessAction().

00099                                        {
00100 Guard (void ExManagerSound::ListAllSound (void))
00101 
00102 UnGuard
00103 }

bool LoadSound std::string   
 

Definition at line 70 of file ExManagerSound.cpp.

References Guard, LoadSound(), and UnGuard.

Referenced by ExManagerCommand::LoadSetOfFile(), LoadSound(), and ExManagerCommand::ProcessAction().

00070                                               {
00071 Guard (bool ExManagerSound::LoadSound(std::string file))
00072         
00073 UnGuard
00074 return false;
00075 }

void PlaySound std::string   
 

Definition at line 77 of file ExManagerSound.cpp.

References Guard, PlaySound(), and UnGuard.

Referenced by PlaySound(), and ExManagerCommand::ProcessAction().

00077                                               {
00078 Guard (void ExManagerSound::PlaySound (std::string file))
00079 UnGuard
00080 }

bool RemoveSound std::string   
 

Definition at line 93 of file ExManagerSound.cpp.

References Guard, RemoveSound(), and UnGuard.

Referenced by ExManagerCommand::ProcessAction(), and RemoveSound().

00093                                                 {
00094 Guard (bool ExManagerSound::RemoveSound (std::string file))
00095         return true;
00096 UnGuard
00097 }

void Reset void   
 

Definition at line 105 of file ExManagerSound.cpp.

References Guard, Reset(), and UnGuard.

Referenced by ExManagerCommand::ProcessAction(), and Reset().

00105                                 {
00106 Guard (void ExManagerSound::Reset (void))
00107 UnGuard
00108 }

void SetManagerId ExManagerId   Id [inline]
 

Definition at line 46 of file ExManagerSound.h.

Referenced by SetManagerLink().

00046 { ManagerId     = Id; }

void StopSound std::string   
 

Definition at line 82 of file ExManagerSound.cpp.

References Guard, StopSound(), and UnGuard.

Referenced by ExManagerCommand::ProcessAction(), and StopSound().

00082                                               {
00083 Guard (void ExManagerSound::StopSound (std::string file))
00084 UnGuard
00085 }


Field Documentation

std::ostrstream* Consol
 

Definition at line 43 of file ExManagerSound.h.

Referenced by DisplayAviableInput(), Init(), and SetManagerLink().

ALCcontext* context_id [private]
 

Definition at line 37 of file ExManagerSound.h.

Referenced by Init(), and ~ExManagerSound().

ALCdevice* dev [private]
 

Definition at line 38 of file ExManagerSound.h.

Referenced by Init().

ExManagerId* ManagerId [private]
 

Definition at line 36 of file ExManagerSound.h.

void(* WriteToConsol)(const char *Label)
 

Referenced by SetManagerLink().


The documentation for this class was generated from the following files:
Generated on Tue Aug 6 20:27:27 2002 for ExNihilo by doxygen1.2.17