Simplify calculating the source stream offset
[alure.git] / src / devicemanager.h
blobf2ccdc2b5f2d8b6bc40512d00e3312449948d4ed
1 #ifndef DEVICEMANAGER_H
2 #define DEVICEMANAGER_H
4 #include "main.h"
6 namespace alure {
8 class ALDevice;
10 class ALDeviceManager : public DeviceManager {
11 Vector<UniquePtr<ALDevice>> mDevices;
13 ALDeviceManager();
14 virtual ~ALDeviceManager();
16 public:
17 static ALCboolean (ALC_APIENTRY*SetThreadContext)(ALCcontext*);
19 static ALDeviceManager &get();
21 void removeDevice(ALDevice *dev);
23 bool queryExtension(const String &name) const override final;
25 Vector<String> enumerate(DeviceEnumeration type) const override final;
26 String defaultDeviceName(DefaultDeviceType type) const override final;
28 Device openPlayback(const String &name) override final;
29 Device openPlayback(const String &name, const std::nothrow_t&) override final;
32 } // namespace alure
34 #endif /* DEVICEMANAGER_H */