Make a couple more operator bools explicit
[openal-soft.git] / core / device.cpp
blob2766c5e4ea7ed5e40d03a30cd311bcbbf884b1aa
2 #include "config.h"
4 #include "bformatdec.h"
5 #include "bs2b.h"
6 #include "device.h"
7 #include "front_stablizer.h"
8 #include "hrtf.h"
9 #include "mastering.h"
12 al::FlexArray<ContextBase*> DeviceBase::sEmptyContextArray{0u};
15 DeviceBase::DeviceBase(DeviceType type) : Type{type}, mContexts{&sEmptyContextArray}
19 DeviceBase::~DeviceBase()
21 auto *oldarray = mContexts.exchange(nullptr, std::memory_order_relaxed);
22 if(oldarray != &sEmptyContextArray) delete oldarray;