10 #ifndef _TurtleBrains_AudioController_h_
11 #define _TurtleBrains_AudioController_h_
13 #include "../core/tb_configuration.h"
14 #if defined(tb_with_audio)
16 #include "../core/tb_types.h"
59 explicit AudioController(
const AudioHandle& audioHandle = kInvalidAudio);
80 void Play(
const bool isLooping =
false);
160 AudioHandle mAudioData;
161 AudioChannel mAudioChannel;
void SetPitch(const float pitch)
void SetLoopPoints(const tbCore::uint32 startSample, const tbCore::uint32 endSample)
tbCore::uint32 AudioChannel
Definition: tb_audio_controller.h:38
tbCore::uint32 AudioHandle
Definition: tb_audio_controller.h:27
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
float GetPitch(void) const
void FadeVolumeTo(const float desiredVolume, const tbCore::uint32 timeInMilliseconds)
void Play(const bool isLooping=false)
AudioController(const AudioHandle &audioHandle=kInvalidAudio)
Definition: tb_audio_controller.h:50
Definition: tb_audio_manager.h:34
float GetVolume(void) const
bool IsComplete(void) const
Bring some sound into the games created with TurtleBrains using a very simple fire and forget AudioMa...
Definition: tb_audio_controller.h:20
uint32_t uint32
Unsigned integer with a size of 32 bits. Supports values from 0 to 4294967295, (2^32 - 1)...
Definition: tb_types.h:28
const AudioHandle kInvalidAudio
const AudioChannel kInvalidChannel
void SetVolume(const float volume)