aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-22 05:37:35 -0800
committerChris Robinson <[email protected]>2018-11-22 05:37:35 -0800
commitb3b42201828bb737c55c20bd46af10b40d10ef85 (patch)
tree52bfd41cfffba72af4d20cb479cbdc04d5fb2920 /OpenAL32
parent671ed1abf8cc246c6e2b5f9ae3bac132fb9af519 (diff)
Use unique_ptr for BFormatDec and AmbiUpsampler
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index c57d87ba..de602d35 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -208,6 +208,8 @@ struct ALeffect;
struct ALfilter;
struct EffectState;
struct Uhj2Encoder;
+struct BFormatDec;
+struct AmbiUpsampler;
#define DEFAULT_OUTPUT_RATE (44100)
@@ -673,13 +675,13 @@ struct ALCdevice_struct {
std::unique_ptr<Uhj2Encoder> Uhj_Encoder;
/* High quality Ambisonic decoder */
- struct BFormatDec *AmbiDecoder{nullptr};
+ std::unique_ptr<BFormatDec> AmbiDecoder;
/* Stereo-to-binaural filter */
struct bs2b *Bs2b{nullptr};
/* First-order ambisonic upsampler for higher-order output */
- struct AmbiUpsampler *AmbiUp{nullptr};
+ std::unique_ptr<AmbiUpsampler> AmbiUp;
/* Rendering mode. */
RenderMode Render_Mode{NormalRender};