Don't over-allocate the active effect slot array
[openal-soft.git] / core / device.cpp
blob795a96016b211a5c107fb011f50afa3a4a2b585c
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 static_assert(std::atomic<std::chrono::nanoseconds>::is_always_lock_free);
15 DeviceBase::DeviceBase(DeviceType type)
16 : Type{type}, mContexts{al::FlexArray<ContextBase*>::Create(0)}
20 DeviceBase::~DeviceBase() = default;