diff options
author | Chris Robinson <[email protected]> | 2019-03-31 22:27:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-31 22:27:56 -0700 |
commit | 0e0e85af72f855627ca043e234949593ff947caf (patch) | |
tree | 4262b2fc2f43e06b52aff0a6563f8aacdc1c626a /Alc/panning.cpp | |
parent | 423333c59455a7cc2ca3cee49e8a4643bc0298c5 (diff) |
Don't bother with a separate reset method for BFormatDec
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r-- | Alc/panning.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp index 34984c94..25be847f 100644 --- a/Alc/panning.cpp +++ b/Alc/panning.cpp @@ -440,8 +440,7 @@ void InitPanning(ALCdevice *device) (coeffcount > 3) ? "second" : "first", "" ); - device->AmbiDecoder = al::make_unique<BFormatDec>(); - device->AmbiDecoder->reset(coeffcount, count, chancoeffs, idxmap); + device->AmbiDecoder = al::make_unique<BFormatDec>(coeffcount, count, chancoeffs, idxmap); device->RealOut.NumChannels = device->channelsFromFmt(); } @@ -481,8 +480,8 @@ void InitCustomPanning(ALCdevice *device, const AmbDecConf *conf, const ALsizei (conf->ChanMask > AMBI_1ORDER_MASK) ? "second" : "first", (conf->ChanMask&AMBI_PERIPHONIC_MASK) ? " periphonic" : "" ); - device->AmbiDecoder = al::make_unique<BFormatDec>(); - device->AmbiDecoder->reset(conf, false, count, device->Frequency, speakermap); + device->AmbiDecoder = al::make_unique<BFormatDec>(conf, false, count, device->Frequency, + speakermap); device->RealOut.NumChannels = device->channelsFromFmt(); @@ -523,8 +522,8 @@ void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALsizei (&sp (conf->ChanMask > AMBI_1ORDER_MASK) ? "second" : "first", (conf->ChanMask&AMBI_PERIPHONIC_MASK) ? " periphonic" : "" ); - device->AmbiDecoder = al::make_unique<BFormatDec>(); - device->AmbiDecoder->reset(conf, true, count, device->Frequency, speakermap); + device->AmbiDecoder = al::make_unique<BFormatDec>(conf, true, count, device->Frequency, + speakermap); device->RealOut.NumChannels = device->channelsFromFmt(); |