Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #ifndef __SP_AUDIO_OPENAL_SOURCE_H__
00009 #define __SP_AUDIO_OPENAL_SOURCE_H__
00010 
00011 
00012 #include "Base/spStandard.hpp"
00013 
00014 #ifdef SP_COMPILE_WITH_OPENAL
00015 
00016 
00017 #include <AL/al.h>
00018 #include <AL/alc.h>
00019 
00020 
00021 namespace sp
00022 {
00023 namespace audio
00024 {
00025 
00026 
00027 class ALBufferObject;
00028 
00030 class ALSourceObject
00031 {
00032     
00033     public:
00034         
00035         ALSourceObject();
00036         ~ALSourceObject();
00037         
00038         
00039         
00040         void setupBuffer(ALBufferObject* BufferObject);
00041         
00042         ALint getState() const;
00043         
00044         
00045         
00047         inline ALuint getID() const
00048         {
00049             return ALSource_;
00050         }
00051         
00052     private:
00053         
00054         
00055         
00056         ALuint ALSource_;
00057         
00058 };
00059 
00060 
00061 } 
00062 
00063 } 
00064 
00065 
00066 #endif
00067 
00068 #endif
00069 
00070 
00071 
00072