From edb4ec67a97a7e5a5905575bb3bc20cc60980d6a Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Fri, 6 Oct 2017 12:35:36 -0300 Subject: [PATCH] Use "using namespace std" for roundf instead of std::roundf. --- RtAudio.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RtAudio.cpp b/RtAudio.cpp index f72c899..ddb423a 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -3883,7 +3883,10 @@ void convertBufferWasapi( char* outBuffer, float sampleStep = 1.0f / sampleRatio; float inSampleFraction = 0.0f; - outSampleCount = ( unsigned int ) std::roundf( inSampleCount * sampleRatio ); + // for cmath functions + using namespace std; + + outSampleCount = ( unsigned int ) roundf( inSampleCount * sampleRatio ); // if inSampleRate is a multiple of outSampleRate (or vice versa) there's no need to interpolate if ( floor( sampleRatio ) == sampleRatio || floor( sampleRatioInv ) == sampleRatioInv ) -- 2.30.2