mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_SOUND_H
 | 
						|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_SOUND_H
 | 
						|
 | 
						|
#include <components/settings/hrtfmode.hpp>
 | 
						|
#include <components/settings/sanitizerimpl.hpp>
 | 
						|
#include <components/settings/settingvalue.hpp>
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace Settings
 | 
						|
{
 | 
						|
    struct SoundCategory : WithIndex
 | 
						|
    {
 | 
						|
        using WithIndex::WithIndex;
 | 
						|
 | 
						|
        SettingValue<std::string> mDevice{ mIndex, "Sound", "device" };
 | 
						|
        SettingValue<float> mMasterVolume{ mIndex, "Sound", "master volume", makeClampSanitizerFloat(0, 1) };
 | 
						|
        SettingValue<float> mFootstepsVolume{ mIndex, "Sound", "footsteps volume", makeClampSanitizerFloat(0, 1) };
 | 
						|
        SettingValue<float> mMusicVolume{ mIndex, "Sound", "music volume", makeClampSanitizerFloat(0, 1) };
 | 
						|
        SettingValue<float> mSfxVolume{ mIndex, "Sound", "sfx volume", makeClampSanitizerFloat(0, 1) };
 | 
						|
        SettingValue<float> mVoiceVolume{ mIndex, "Sound", "voice volume", makeClampSanitizerFloat(0, 1) };
 | 
						|
        SettingValue<int> mBufferCacheMin{ mIndex, "Sound", "buffer cache min", makeMaxSanitizerInt(1) };
 | 
						|
        SettingValue<int> mBufferCacheMax{ mIndex, "Sound", "buffer cache max", makeMaxSanitizerInt(1) };
 | 
						|
        SettingValue<HrtfMode> mHrtfEnable{ mIndex, "Sound", "hrtf enable" };
 | 
						|
        SettingValue<std::string> mHrtf{ mIndex, "Sound", "hrtf" };
 | 
						|
        SettingValue<bool> mCameraListener{ mIndex, "Sound", "camera listener" };
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |