41 bool m_device_opened{
false};
46 bool m_playing{
false};
51 bool m_delayed_close_finished{
false};
56 std::thread m_delayed_close_thread;
61 std::chrono::milliseconds m_device_close_delay{std::chrono::milliseconds(10000)};
66 std::chrono::time_point<std::chrono::steady_clock> m_playback_stopped_time;
71 void closeAfterDelay();
94 OpenCloseDevice(
const OpenCloseDevice&) =
delete;
95 OpenCloseDevice& operator=(
const OpenCloseDevice&) =
delete;
98 OpenCloseDevice() =
default;
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_LOCAL
Used for hiding symbols from export in the shared library.
Definition Audaspace.h:80
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_PLUGIN_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:94
The SoftwareDevice class.
virtual void playing(bool playing)
This function tells the device, to start or pause playback.
SoftwareDevice()
Empty default constructor.