Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
soundproperties.h
1 #pragma once
2 
3 #include <string>
4 
6 public:
7  SoundProperties() = default;
8  SoundProperties(const std::string& sound, float volume, float attenuation, bool repeating);
9 
10  const std::string& sound() const;
11  const float volume() const;
12  const float attenuation() const;
13  const bool looping() const;
14 
15  static SoundProperties fromProperties(const std::string& prefix);
16 
17 protected:
18  std::string m_sound;
19  float m_volume;
20  float m_attenuation;
21  bool m_looping;
22 
23 };
Definition: soundproperties.h:5