diff options
author | Chris Robinson <[email protected]> | 2018-12-27 13:40:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-27 13:40:43 -0800 |
commit | 4782d6107d250e3528c5e567dca48da727584ee7 (patch) | |
tree | 05679c4196c4dacfce65991fa4caa7862cf1c381 /Alc/backends/solaris.cpp | |
parent | 7880f27054cd69cd1e36ebd3d20aa9d6148e3bbd (diff) |
Use a proper constructor/destructor for the ALCbackend base
Diffstat (limited to 'Alc/backends/solaris.cpp')
-rw-r--r-- | Alc/backends/solaris.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/solaris.cpp b/Alc/backends/solaris.cpp index 41026de8..60db963b 100644 --- a/Alc/backends/solaris.cpp +++ b/Alc/backends/solaris.cpp @@ -54,6 +54,8 @@ struct ALCsolarisBackend final : public ALCbackend { std::atomic<ALenum> mKillNow{AL_TRUE}; std::thread mThread; + + ALCsolarisBackend(ALCdevice *device) noexcept : ALCbackend{device} { } }; static int ALCsolarisBackend_mixerProc(ALCsolarisBackend *self); @@ -81,8 +83,7 @@ static const char *solaris_driver = "/dev/audio"; static void ALCsolarisBackend_Construct(ALCsolarisBackend *self, ALCdevice *device) { - new (self) ALCsolarisBackend{}; - ALCbackend_Construct(STATIC_CAST(ALCbackend, self), device); + new (self) ALCsolarisBackend{device}; SET_VTABLE2(ALCsolarisBackend, ALCbackend, self); } @@ -96,7 +97,6 @@ static void ALCsolarisBackend_Destruct(ALCsolarisBackend *self) self->mix_data = nullptr; self->data_size = 0; - ALCbackend_Destruct(STATIC_CAST(ALCbackend, self)); self->~ALCsolarisBackend(); } |