Add missing consttructor and destructor calls for the wave backend

This commit is contained in:
Chris Robinson 2018-11-09 02:55:28 -08:00
parent b2cdfe58eb
commit b327a50a15

View File

@ -104,6 +104,7 @@ DEFINE_ALCBACKEND_VTABLE(ALCwaveBackend);
static void ALCwaveBackend_Construct(ALCwaveBackend *self, ALCdevice *device)
{
new (self) ALCwaveBackend{};
ALCbackend_Construct(STATIC_CAST(ALCbackend, self), device);
SET_VTABLE2(ALCwaveBackend, ALCbackend, self);
@ -123,6 +124,7 @@ static void ALCwaveBackend_Destruct(ALCwaveBackend *self)
self->mFile = nullptr;
ALCbackend_Destruct(STATIC_CAST(ALCbackend, self));
self->~ALCwaveBackend();
}
static int ALCwaveBackend_mixerProc(void *ptr)