diff --git a/SDL2pp/Audio.hh b/SDL2pp/Audio.hh index ffbd554..baee880 100644 --- a/SDL2pp/Audio.hh +++ b/SDL2pp/Audio.hh @@ -60,6 +60,7 @@ public: LockHandle(AudioDevice* device); public: + LockHandle(); ~LockHandle(); LockHandle(LockHandle&& other) noexcept; diff --git a/SDL2pp/AudioLock.cc b/SDL2pp/AudioLock.cc index d426856..4193a98 100644 --- a/SDL2pp/AudioLock.cc +++ b/SDL2pp/AudioLock.cc @@ -23,6 +23,9 @@ namespace SDL2pp { +AudioDevice::LockHandle::LockHandle() : device_(nullptr) { +} + AudioDevice::LockHandle::LockHandle(AudioDevice* device) : device_(device) { SDL_LockAudioDevice(device_->device_id_); }