From 8a5b84795466e0ebb41c2da146d079b437db48bf Mon Sep 17 00:00:00 2001 From: Allen Pestaluky Date: Wed, 6 Jul 2022 16:24:10 -0400 Subject: [PATCH] Changed std::format to std::vformat to address error with new visual studio compiler. --- Audio-Driver-Check/Gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Audio-Driver-Check/Gui.cpp b/Audio-Driver-Check/Gui.cpp index 090ab40..5d5c2bd 100644 --- a/Audio-Driver-Check/Gui.cpp +++ b/Audio-Driver-Check/Gui.cpp @@ -297,8 +297,8 @@ bool Gui::DoGui() } else if (WasapiOutput::GetFormatID(waveFormat) == WAVE_FORMAT_IEEE_FLOAT && waveFormat->wBitsPerSample == 32) { - highSampleBits = std::format("{:032b}", 1.0f * TestConfiguration::OutputVolume); - lowSampleBits = std::format("{:032b}", -1.0f * TestConfiguration::OutputVolume); + highSampleBits = std::vformat("{:032b}", std::make_format_args(1.0f * TestConfiguration::OutputVolume)); + lowSampleBits = std::vformat("{:032b}", std::make_format_args (- 1.0f * TestConfiguration::OutputVolume)); } std::replace(lowSampleBits.begin(), lowSampleBits.end(), '-', '1');