]> git.tdb.fi Git - libs/al.git/blob - source/device.h
Fix compilation on OS X
[libs/al.git] / source / device.h
1 #ifndef MSP_AL_DEVICE_H_
2 #define MSP_AL_DEVICE_H_
3
4 #include <string>
5 #ifdef __APPLE__
6 #include <OpenAL/alc.h>
7 #else
8 #include <AL/alc.h>
9 #endif
10
11 namespace Msp {
12 namespace AL {
13
14 class Device
15 {
16 private:
17         ALCdevice *dev;
18
19 public:
20         Device();
21         Device(const std::string &);
22         ~Device();
23
24         ALCdevice *get_device() { return dev; }
25 };
26
27 } // namespace AL
28 } // namespace Msp
29
30 #endif