diff options
Diffstat (limited to 'alc/alcmain.h')
-rw-r--r-- | alc/alcmain.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alc/alcmain.h b/alc/alcmain.h index f69dc755..5b4e4a2b 100644 --- a/alc/alcmain.h +++ b/alc/alcmain.h @@ -24,6 +24,7 @@ #include "atomic.h" #include "hrtf.h" #include "inprogext.h" +#include "intrusive_ptr.h" #include "vector.h" class BFormatDec; @@ -310,9 +311,7 @@ enum { DeviceFlagsCount }; -struct ALCdevice { - RefCount ref{1u}; - +struct ALCdevice : public al::intrusive_ref<ALCdevice> { std::atomic<bool> Connected{true}; const DeviceType Type{}; |