-
Notifications
You must be signed in to change notification settings - Fork 0
/
RLAudio.h
42 lines (33 loc) · 822 Bytes
/
RLAudio.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
namespace RustyLib
{
namespace Audio
{
class RLAudioManager;
class RLAudio
{
protected:
//Reference to AudioManager for all Audio objects to utilise
static RLAudioManager *audioMgr;
//Initialisation method for base attributes
void BaseInitialise(void );
//De-Initialisation method for base attributes
void BaseDestructor(void );
//Source ID for OpenAL
unsigned int alSourceID;
//Name and ID of buffer data
const std::string name;
unsigned int alBufferID;
public:
//Sets the static AudioManager reference
static void SetAudioManager(RLAudioManager& rAudioMgr);
RLAudio(const std::string& name);
~RLAudio(void);
void Play(void );
void Pause(void );
void Stop(void );
void Rewind(void );
const bool IsPlaying(void )const;
};
}
}