Have a basic little click sound going, but hover events will need some work. I'm doing those on every mouse move.
This commit is contained in:
parent
7186c2ecb0
commit
2ecef8d9f9
6 changed files with 36 additions and 11 deletions
10
sound.hpp
10
sound.hpp
|
@ -16,11 +16,11 @@ namespace sound {
|
|||
};
|
||||
|
||||
void init();
|
||||
void load(const std::string name, const std::string path);
|
||||
void play(const std::string name, bool loop=false);
|
||||
void play_at(const std::string name, float x, float y, float z);
|
||||
void stop(const std::string name);
|
||||
void load(const std::string& name, const std::string& path);
|
||||
void play(const std::string& name, bool loop=false);
|
||||
void play_at(const std::string& name, float x, float y, float z);
|
||||
void stop(const std::string& name);
|
||||
void mute(bool setting);
|
||||
bool playing(const std::string name);
|
||||
bool playing(const std::string& name);
|
||||
SoundPair& get_sound_pair(const std::string& name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue