Added a "getSource()" function that returns a openal source

This commit is contained in:
Raynaldo Rivera 2009-09-03 03:23:58 +00:00
parent 8b1019a98b
commit e3baec7932
3 changed files with 10 additions and 1 deletions

View File

@ -77,7 +77,9 @@ namespace cAudio
bool update();
//!checks to make sure everything is ready to go
bool isvalid();
//!returns the current OpenalSource
const ALuint& getSource()const;
cAudio(IAudioDecoder* decoder);
~cAudio();

View File

@ -385,4 +385,8 @@ namespace cAudio
Mutex.unlock();
}
const ALuint& cAudio::getSource()const
{
return this->source;
}
}

View File

@ -6,6 +6,7 @@
namespace cAudio
{
class IAudio
{
public:
@ -71,6 +72,8 @@ namespace cAudio
virtual bool update() = 0;
//!checks to make sure everything is ready to go
virtual bool isvalid() = 0;
//!returns the current OpenalSource
virtual const ALuint& getSource()const = 0;
protected:
private:
};