10 #ifndef TurtleBrains_AudioManager_hpp
11 #define TurtleBrains_AudioManager_hpp
13 #include <turtle_brains/core/tb_configuration.hpp>
14 #if defined(tb_with_audio)
16 #include <turtle_brains/core/tb_noncopyable.hpp>
17 #include <turtle_brains/core/tb_string.hpp>
18 #include <turtle_brains/core/tb_types.hpp>
19 #include <turtle_brains/audio/tb_audio_controller.hpp>
23 namespace tbImplementation {
class AudioManagerCreator;
struct AudioManagerData; }
107 AudioHandle CreateSoundFromFile(
const tbCore::tbString& filename,
const bool isStreaming =
false);
117 void DestroySound(
const AudioHandle& audioHandle);
161 AudioController PlaySound(
const AudioHandle& audioHandle,
const bool isLooping =
false,
const bool isMusic =
false);
166 float GetGlobalMusicVolume(
void)
const;
178 void SetGlobalMusicVolume(
const float musicVolume);
183 float GetGlobalEffectVolume(
void)
const;
195 void SetGlobalEffectVolume(
const float effectVolume);
204 void PauseAllAudio(
void);
209 void ResumeAllAudio(
void);
218 friend class tbImplementation::AudioManagerCreator;
232 std::unique_ptr<tbImplementation::AudioManagerData> mData;
239 extern AudioManager& theAudioManager;
249 void OpenAudioDevice(
void);
258 void CloseAudioDevice(
void);
268 void UpdateAudioDevice(
void);
Definition: tb_noncopyable.hpp:22
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
uint64_t uint64
Unsigned integer with a size of 64 bits, Supports values from 0 to (2^64 - 1).
Definition: tb_types.hpp:30
Bring some sound into the games created with TurtleBrains using a very simple fire and forget AudioMa...
std::string tbString
Definition: tb_string.hpp:335
Definition: tb_application_dialog.hpp:19