aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-22 03:03:24 -0700
committerChris Robinson <[email protected]>2019-05-22 03:03:24 -0700
commitb48bab33948dae90a27b4f8ccd3eb6b20d49ba86 (patch)
tree3f3dce90cb9d16a8c3c421ebbe1703e67d309e8e /OpenAL32
parent657978c732d3ed379ff4e65891fe21140433a248 (diff)
Allow initializing splitter filters with constructors
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alSource.cpp3
1 files changed, 1 insertions, 2 deletions
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<ALfloat>(device->Frequency));
+ BandSplitter splitter{400.0f / static_cast<ALfloat>(device->Frequency)};
const auto scales = BFormatDec::GetHFOrderScales(1, device->mAmbiOrder);
auto init_ambi = [scales,&OrderFromChan,&splitter](ALvoice::ResampleData &resdata) -> void