SDL2pp::AudioDevice lock.
More...
#include <SDL2pp/AudioDevice.hh>
SDL2pp::AudioDevice lock.
Audio devices may be locked, which means that audio callback will not be called in a locked state, allowing to change data it accesses in a thread-safe way.
This class represents the lock and controls its lifetime as the lock is released as soon as LockHandle is destroyed.
Usage example:
{
{
}
}
SDL2pp::AudioDevice lock.
Definition AudioDevice.hh:86
Audio device.
Definition AudioDevice.hh:50
AudioDevice & Pause(bool pause_on)
Pause or unpause audio playback.
Definition AudioDevice.cc:91
Chunk of audio data read from a .WAV file
Definition Wav.hh:52
◆ LockHandle() [1/3]
SDL2pp::AudioDevice::LockHandle::LockHandle |
( |
| ) |
|
Create no-op lock.
This may be initialized with real lock later via move assignment
◆ ~LockHandle()
SDL2pp::AudioDevice::LockHandle::~LockHandle |
( |
| ) |
|
◆ LockHandle() [2/3]
Move constructor.
- Parameters
-
◆ LockHandle() [3/3]
SDL2pp::AudioDevice::LockHandle::LockHandle |
( |
const LockHandle & |
other | ) |
|
Copy constructor.
- Parameters
-
◆ operator=() [1/2]
Assignment operator.
- Parameters
-
- Returns
- Reference to self
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
- Returns
- Reference to self
The documentation for this class was generated from the following files: