3#include "PixelBullet/Audio/CommandQueue.hpp"
4#include "PixelBullet/Audio/AudioBackend.hpp"
37 void AudioThreadLoop();
39 void SubmitCommand(
const std::function<
void()>& command);
42 std::thread m_AudioThread;
43 std::atomic<bool> m_Running;
45 std::unique_ptr<AudioBackend> m_Backend;
void PlaySound(const VirtualPath &filePath, bool loop=false)
Play a sound given its file path. If loop is true the sound will restart endlessly.
Definition Audio.cpp:55
A simple thread-safe command queue.
Definition CommandQueue.hpp:13
Definition VirtualPath.hpp:11