From b48bab33948dae90a27b4f8ccd3eb6b20d49ba86 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 22 May 2019 03:03:24 -0700 Subject: Allow initializing splitter filters with constructors --- OpenAL32/alSource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index 513adb88..48f9a157 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -2936,8 +2936,7 @@ START_API_FUNC OrderFromChan = Order3DFromChan; } - BandSplitter splitter; - splitter.init(400.0f / static_cast(device->Frequency)); + BandSplitter splitter{400.0f / static_cast(device->Frequency)}; const auto scales = BFormatDec::GetHFOrderScales(1, device->mAmbiOrder); auto init_ambi = [scales,&OrderFromChan,&splitter](ALvoice::ResampleData &resdata) -> void -- cgit v1.2.3