summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibAudio
diff options
context:
space:
mode:
authorkleines Filmröllchen <malu.bertsch@gmail.com>2021-07-13 11:03:10 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-13 17:40:07 +0200
commitf634949d26b116760dadb32b230bd211eaef26f5 (patch)
tree55836a96e1344b8369ed1eb52aa39704d48b69fc /Userland/Libraries/LibAudio
parent1e1fa4eac48666f013e5f627b3e59549ebcb5eee (diff)
downloadserenity-f634949d26b116760dadb32b230bd211eaef26f5.zip
LibAudio: Use new Vector formatter
Diffstat (limited to 'Userland/Libraries/LibAudio')
-rw-r--r--Userland/Libraries/LibAudio/FlacLoader.cpp10
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.