summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp
index 87706c8..846b166 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -25,6 +25,7 @@ along with Minitrem. If not, see <http://www.gnu.org/licenses/>.
#include <sstream>
#include <stack>
#include <SFML/Graphics.hpp>
+#include <SFML/Audio.hpp>
#include "math.hpp"
#define COUNT(A) (sizeof(A) / sizeof((A)[0]))
@@ -377,6 +378,16 @@ namespace render {
};
}
+namespace audio {
+ class sound_t {
+ sf::SoundBuffer buffer;
+
+ public:
+ void load(const char *path);
+ void play(void);
+ };
+}
+
extern render::state_t *debug_render;
// Divide and round to minus infinity.