mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-08 06:48:56 -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);
|
||||
|
||||
public:
|
||||
LockHandle();
|
||||
~LockHandle();
|
||||
|
||||
LockHandle(LockHandle&& other) noexcept;
|
||||
|
@ -23,6 +23,9 @@
|
||||
|
||||
namespace SDL2pp {
|
||||
|
||||
AudioDevice::LockHandle::LockHandle() : device_(nullptr) {
|
||||
}
|
||||
|
||||
AudioDevice::LockHandle::LockHandle(AudioDevice* device) : device_(device) {
|
||||
SDL_LockAudioDevice(device_->device_id_);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user