diff options
Diffstat (limited to 'src/game/client/sound/sound.hh')
| -rw-r--r-- | src/game/client/sound/sound.hh | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/game/client/sound/sound.hh b/src/game/client/sound/sound.hh deleted file mode 100644 index d96d0c4..0000000 --- a/src/game/client/sound/sound.hh +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include "core/resource/resource.hh" - -namespace config -{ -class Float; -} // namespace config - -struct SoundEffect; - -namespace sound -{ -extern config::Float volume_master; -extern config::Float volume_effects; -extern config::Float volume_music; -extern config::Float volume_ui; -} // namespace sound - -namespace sound -{ -void init_config(void); -void init(void); -void init_late(void); -void shutdown(void); -void update(void); -} // namespace sound - -namespace sound -{ -void play_generic(std::string_view sound, bool looping, float pitch); -void play_entity(entt::entity entity, std::string_view sound, bool looping, float pitch); -void play_player(std::string_view sound, bool looping, float pitch); -void play_ui(std::string_view sound, bool looping, float pitch); -} // namespace sound - -namespace sound -{ -void play_generic(resource_ptr<SoundEffect> sound, bool looping, float pitch); -void play_entity(entt::entity entity, resource_ptr<SoundEffect> sound, bool looping, float pitch); -void play_player(resource_ptr<SoundEffect> sound, bool looping, float pitch); -void play_ui(resource_ptr<SoundEffect> sound, bool looping, float pitch); -} // namespace sound |
