🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
476 B

  1. #include "config.h"
  2. #include "bformatdec.h"
  3. #include "bs2b.h"
  4. #include "device.h"
  5. #include "front_stablizer.h"
  6. #include "hrtf.h"
  7. #include "mastering.h"
  8. al::FlexArray<ContextBase*> DeviceBase::sEmptyContextArray{0u};
  9. DeviceBase::DeviceBase(DeviceType type) : Type{type}, mContexts{&sEmptyContextArray}
  10. {
  11. }
  12. DeviceBase::~DeviceBase()
  13. {
  14. auto *oldarray = mContexts.exchange(nullptr, std::memory_order_relaxed);
  15. if(oldarray != &sEmptyContextArray) delete oldarray;
  16. }