#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_SOUND_H #define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_SOUND_H #include "components/settings/sanitizerimpl.hpp" #include "components/settings/settingvalue.hpp" #include #include #include #include #include #include namespace Settings { struct SoundCategory { SettingValue mDevice{ "Sound", "device" }; SettingValue mMasterVolume{ "Sound", "master volume", makeClampSanitizerFloat(0, 1) }; SettingValue mFootstepsVolume{ "Sound", "footsteps volume", makeClampSanitizerFloat(0, 1) }; SettingValue mMusicVolume{ "Sound", "music volume", makeClampSanitizerFloat(0, 1) }; SettingValue mSfxVolume{ "Sound", "sfx volume", makeClampSanitizerFloat(0, 1) }; SettingValue mVoiceVolume{ "Sound", "voice volume", makeClampSanitizerFloat(0, 1) }; SettingValue mBufferCacheMin{ "Sound", "buffer cache min", makeMaxSanitizerInt(1) }; SettingValue mBufferCacheMax{ "Sound", "buffer cache max", makeMaxSanitizerInt(1) }; SettingValue mHrtfEnable{ "Sound", "hrtf enable", makeEnumSanitizerInt({ -1, 0, 1 }) }; SettingValue mHrtf{ "Sound", "hrtf" }; }; } #endif