6#ifndef EGT_SOUND_EFFECT_H
7#define EGT_SOUND_EFFECT_H
16#include <egt/detail/meta.h>
58 SoundDevice(
int card_index = 0,
int device_index = 0) noexcept
59 : m_card_index(card_index), m_device_index(device_index)
70 m_card_index = card_index;
88 m_card_name = card_name;
106 m_device_index = device_index;
114 return m_device_index;
124 m_device_name = device_name;
132 return m_device_name;
138 std::string m_card_name{};
139 int m_device_index{0};
140 std::string m_device_name{};
187 bool media(const std::
string& uri) noexcept;
192 std::
string media() const;
197 void repeat(
bool value);
202 EGT_NODISCARD
bool repeat() const;
222 std::unique_ptr<detail::SoundEffectImpl> m_impl;
The SoundDevice object is used to describe an ALSA PCM device.
Definition sound_effect.h:51
void device_index(int device_index)
Set the sound device index.
Definition sound_effect.h:104
SoundDevice(int card_index=0, int device_index=0) noexcept
Definition sound_effect.h:58
void card_index(int card_index)
Set the sound card index.
Definition sound_effect.h:68
EGT_NODISCARD std::string device_name() const
Get the sound device name.
Definition sound_effect.h:130
EGT_NODISCARD std::string card_name() const
Get the sound card name.
Definition sound_effect.h:94
EGT_NODISCARD int device_index() const
Get the sound device index.
Definition sound_effect.h:112
void device_name(std::string device_name)
Set the sound device name.
Definition sound_effect.h:122
void card_name(const std::string &card_name)
Set the sound card name.
Definition sound_effect.h:86
EGT_NODISCARD int card_index() const
Get the sound card index.
Definition sound_effect.h:76
Notification Sound Effect.
Definition sound_effect.h:42
SoundEffect() noexcept
SoundEffect default constructor.
SoundEffect(const std::string &uri, const SoundDevice &sound_device={})
SoundEffect constructor.
EGT framework namespace.
Definition animation.h:24