Skip to content

Commit

Permalink
Changed std::format to std::vformat to address error with new visual …
Browse files Browse the repository at this point in the history
…studio compiler.
  • Loading branch information
AVLatency committed Jul 6, 2022
1 parent 2e9ba69 commit 8a5b847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Audio-Driver-Check/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8a5b847

Please sign in to comment.