Added a "getSource()" function that returns a openal source
This commit is contained in:
parent
8b1019a98b
commit
e3baec7932
|
@ -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();
|
||||
|
||||
|
|
|
@ -385,4 +385,8 @@ namespace cAudio
|
|||
Mutex.unlock();
|
||||
}
|
||||
|
||||
const ALuint& cAudio::getSource()const
|
||||
{
|
||||
return this->source;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue