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();
#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.
This device extends the SoftwareDevice with code for running mixing in a separate thread.
Definition OpenCloseDevice.h:36
virtual void playing(bool playing)
This function tells the device, to start or pause playback.
The software device is a generic device with software mixing.
Definition SoftwareDevice.h:52