14#include <egt/detail/meta.h>
60 explicit Sound(
const std::string& uri,
61 const std::string& device =
"default");
69 explicit Sound(
const std::string& uri,
unsigned int rate,
int channels,
70 const std::string& device =
"default");
81 void media(const std::
string& uri);
91 void play(
bool repeat = false);
103 static std::vector<std::
string> enumerate_pcm_devices();
107 void open_alsa_device(const std::
string& device);
109 void init_alsa_params(
unsigned int rate,
int channels);
114 std::unique_ptr<detail::soundimpl> m_impl;
Simple class to manage playing raw or WAV PCM sound files.
Definition sound.h:53
Sound(const std::string &uri, const std::string &device="default")
Sound & operator=(const Sound &)=delete
Sound(const std::string &uri, unsigned int rate, int channels, const std::string &device="default")
Sound(const Sound &)=delete
EGT framework namespace.
Definition animation.h:24