blob: f99cce4f62294b9baf55d7e40c7dabedd439bf50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef MUXER_H_3146C802
#define MUXER_H_3146C802
#include <memory>
#include <string>
#include <fmod_studio_common.h>
#include <fmod_studio.hpp>
class fmod_system_deleter {
public:
void operator()(FMOD::Studio::System* val) {
val->release();
}
};
using fmod_system_ptr = std::unique_ptr<FMOD::Studio::System, fmod_system_deleter>;
class Muxer {
public:
Muxer();
void setPlayerLoc(int x, int y);
void playSoundAtPosition(std::string name, float x, float y);
void setMusicLevel(int level);
void update();
private:
fmod_system_ptr system_;
FMOD::Studio::EventInstance* exploration_event_;
};
#endif /* end of include guard: MUXER_H_3146C802 */
|