Inline a couple BackendBase methods
This commit is contained in:
@@ -24,11 +24,6 @@ ClockLatency GetClockLatency(ALCdevice *device)
|
||||
|
||||
|
||||
/* BackendBase method implementations. */
|
||||
BackendBase::BackendBase(ALCdevice *device) noexcept : mDevice{device}
|
||||
{ }
|
||||
|
||||
BackendBase::~BackendBase() = default;
|
||||
|
||||
bool BackendBase::reset()
|
||||
{ throw al::backend_exception{ALC_INVALID_DEVICE, "Invalid BackendBase call"}; }
|
||||
|
||||
|
||||
+3
-3
@@ -43,10 +43,10 @@ struct BackendBase {
|
||||
|
||||
virtual ClockLatency getClockLatency();
|
||||
|
||||
ALCdevice *mDevice;
|
||||
ALCdevice *const mDevice;
|
||||
|
||||
BackendBase(ALCdevice *device) noexcept;
|
||||
virtual ~BackendBase();
|
||||
BackendBase(ALCdevice *device) noexcept : mDevice{device} { }
|
||||
virtual ~BackendBase() = default;
|
||||
};
|
||||
using BackendPtr = std::unique_ptr<BackendBase>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user