mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-10 07:50:06 -04:00
Implement empty constructor for AudioDevice::LockHandle
Useful if lock must be initialized after it was created
This commit is contained in:
parent
70fafab8dd
commit
16b9399bd1
@ -60,6 +60,7 @@ public:
|
|||||||
LockHandle(AudioDevice* device);
|
LockHandle(AudioDevice* device);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
LockHandle();
|
||||||
~LockHandle();
|
~LockHandle();
|
||||||
|
|
||||||
LockHandle(LockHandle&& other) noexcept;
|
LockHandle(LockHandle&& other) noexcept;
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
|
|
||||||
namespace SDL2pp {
|
namespace SDL2pp {
|
||||||
|
|
||||||
|
AudioDevice::LockHandle::LockHandle() : device_(nullptr) {
|
||||||
|
}
|
||||||
|
|
||||||
AudioDevice::LockHandle::LockHandle(AudioDevice* device) : device_(device) {
|
AudioDevice::LockHandle::LockHandle(AudioDevice* device) : device_(device) {
|
||||||
SDL_LockAudioDevice(device_->device_id_);
|
SDL_LockAudioDevice(device_->device_id_);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user