HatchitAudio
ht_audiodevice.h
1 
15 #pragma once
16 
17 #include <ht_platform.h> //HT_API
18 #include <AL/al.h>
19 #include <AL/alc.h> //ALCdevice, ALCcontext
20 
21 namespace Hatchit
22 {
23  namespace Audio
24  {
25  class HT_API Device
26  {
27  public:
28  Device();
29  ~Device();
30 
31  bool Initialize();
32 
33  void MakeContextCurrent();
34  void ProcessContext();
35  void SuspendContext();
36 
37  const ALCdevice* GetDevice() const;
38  ALCdevice* GetDevice();
39  const ALCcontext* GetContext() const;
40  ALCcontext* GetContext();
41 
42  private:
43  ALCdevice* m_instance;
44  ALCcontext* m_context;
45  };
46  }
47 }
Definition: ht_audiodevice.h:25
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_audiobuffer.h:23