diff options
author | Chris Robinson <[email protected]> | 2020-12-27 12:23:35 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-27 12:23:35 -0800 |
commit | 43d053cb32350b88ae297f3228b3fbe5a005a29c (patch) | |
tree | 56f8a1f01c6cd55a4c1a813a778534388bfc88d7 /alc | |
parent | 04358890d9de4182599688a13b12dfb02aae6dca (diff) |
Reorder some device fields
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alcmain.h | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/alc/alcmain.h b/alc/alcmain.h index d525c825..41031d8a 100644 --- a/alc/alcmain.h +++ b/alc/alcmain.h @@ -194,47 +194,23 @@ struct ALCdevice : public al::intrusive_ref<ALCdevice> { DevFmtType FmtType{}; bool IsHeadphones{false}; uint mAmbiOrder{0}; + float mXOverFreq{400.0f}; /* For DevFmtAmbi* output only, specifies the channel order and * normalization. */ DevAmbiLayout mAmbiLayout{DevAmbiLayout::Default}; DevAmbiScaling mAmbiScale{DevAmbiScaling::Default}; - float mXOverFreq{400.0f}; - - ALCenum LimiterState{ALC_DONT_CARE_SOFT}; std::string DeviceName; // Device flags al::bitfield<DeviceFlagsCount> Flags{}; - std::string HrtfName; - al::vector<std::string> HrtfList; - ALCenum HrtfStatus{ALC_FALSE}; - - std::atomic<ALCenum> LastError{ALC_NO_ERROR}; - // Maximum number of sources that can be created uint SourcesMax{}; // Maximum number of slots that can be created uint AuxiliaryEffectSlotMax{}; - ALCuint NumMonoSources{}; - ALCuint NumStereoSources{}; - ALCuint NumAuxSends{}; - - // Map of Buffers for this device - std::mutex BufferLock; - al::vector<BufferSubList> BufferList; - - // Map of Effects for this device - std::mutex EffectLock; - al::vector<EffectSubList> EffectList; - - // Map of Filters for this device - std::mutex FilterLock; - al::vector<FilterSubList> FilterList; - /* Rendering mode. */ RenderMode mRenderMode{RenderMode::Normal}; @@ -315,6 +291,31 @@ struct ALCdevice : public al::intrusive_ref<ALCdevice> { std::unique_ptr<BackendBase> Backend; + ALCuint NumMonoSources{}; + ALCuint NumStereoSources{}; + ALCuint NumAuxSends{}; + + std::string HrtfName; + al::vector<std::string> HrtfList; + ALCenum HrtfStatus{ALC_FALSE}; + + ALCenum LimiterState{ALC_DONT_CARE_SOFT}; + + std::atomic<ALCenum> LastError{ALC_NO_ERROR}; + + // Map of Buffers for this device + std::mutex BufferLock; + al::vector<BufferSubList> BufferList; + + // Map of Effects for this device + std::mutex EffectLock; + al::vector<EffectSubList> EffectList; + + // Map of Filters for this device + std::mutex FilterLock; + al::vector<FilterSubList> FilterList; + + ALCdevice(DeviceType type); ALCdevice(const ALCdevice&) = delete; ALCdevice& operator=(const ALCdevice&) = delete; |