1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-06 09:39:49 +00:00
OpenMW/apps/openmw/mwsound/regionsoundselector.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
480 B
C++
Raw Normal View History

#ifndef GAME_SOUND_REGIONSOUNDSELECTOR_H
#define GAME_SOUND_REGIONSOUNDSELECTOR_H
#include <components/esm/refid.hpp>
namespace MWSound
{
class RegionSoundSelector
{
public:
2024-03-09 17:14:43 +01:00
ESM::RefId getNextRandom(float duration, const ESM::RefId& regionName);
RegionSoundSelector();
private:
float mTimeToNextEnvSound = 0.0f;
float mTimePassed = 0.0;
float mMinTimeBetweenSounds;
float mMaxTimeBetweenSounds;
};
}
#endif