From eefc379a239820a0711683455f5fadb20c8dbaf9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 21 Nov 2018 15:31:32 -0800 Subject: Use a unique_ptr for Uhj2Encoder --- OpenAL32/Include/alMain.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index e6ad849e..06ccd574 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -207,6 +207,7 @@ struct ALbuffer; struct ALeffect; struct ALfilter; struct EffectState; +struct Uhj2Encoder; #define DEFAULT_OUTPUT_RATE (44100) @@ -669,7 +670,7 @@ struct ALCdevice_struct { ALCenum HrtfStatus{ALC_FALSE}; /* UHJ encoder state */ - struct Uhj2Encoder *Uhj_Encoder{nullptr}; + std::unique_ptr Uhj_Encoder; /* High quality Ambisonic decoder */ struct BFormatDec *AmbiDecoder{nullptr}; -- cgit v1.2.3