60 AUD_LOCAL virtual void runMixingThread()=0;
86 inline void doStop() { m_stop = m_playing =
false; }
#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.
The software device is a generic device with software mixing.
Definition SoftwareDevice.h:52
This device extends the SoftwareDevice with code for running mixing in a separate thread.
Definition ThreadedDevice.h:35
void stopMixingThread()
Stops all playback and notifies the mixing thread to stop.
void doStop()
This method needs to be called when the mixing thread is stopping.
Definition ThreadedDevice.h:86
bool shouldStop()
Indicates that the mixing thread should be stopped.
Definition ThreadedDevice.h:80
ThreadedDevice()
Empty default constructor.
virtual void playing(bool playing)
This function tells the device, to start or pause playback.