diff options
author | kleines Filmröllchen <malu.bertsch@gmail.com> | 2021-07-13 11:03:10 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-13 17:40:07 +0200 |
commit | f634949d26b116760dadb32b230bd211eaef26f5 (patch) | |
tree | 55836a96e1344b8369ed1eb52aa39704d48b69fc /Userland/Libraries/LibAudio | |
parent | 1e1fa4eac48666f013e5f627b3e59549ebcb5eee (diff) | |
download | serenity-f634949d26b116760dadb32b230bd211eaef26f5.zip |
LibAudio: Use new Vector formatter
Diffstat (limited to 'Userland/Libraries/LibAudio')
-rw-r--r-- | Userland/Libraries/LibAudio/FlacLoader.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Userland/Libraries/LibAudio/FlacLoader.cpp b/Userland/Libraries/LibAudio/FlacLoader.cpp index 647b181e2d..1ac76d90a6 100644 --- a/Userland/Libraries/LibAudio/FlacLoader.cpp +++ b/Userland/Libraries/LibAudio/FlacLoader.cpp @@ -639,15 +639,7 @@ Vector<i32> FlacLoaderPlugin::decode_custom_lpc(FlacSubframeHeader& subframe, In coefficients.unchecked_append(coefficient); } - if constexpr (AFLACLOADER_DEBUG) { - StringBuilder coefficients_formatted; - coefficients_formatted.append("[ "); - for (auto coeff : coefficients) { - coefficients_formatted.append(String::formatted("{}, ", coeff)); - } - coefficients_formatted.append("]"); - dbgln("{}-bit {} shift coefficients: {}", lpc_precision, lpc_shift, coefficients_formatted.to_string()); - } + dbgln_if(AFLACLOADER_DEBUG, "{}-bit {} shift coefficients: {}", lpc_precision, lpc_shift, coefficients); // decode residual // FIXME: This order may be incorrect, the LPC is applied to the residual, probably leading to incorrect results. |