diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2017-10-06 12:35:36 -0300 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2017-10-06 12:35:36 -0300 |
| commit | edb4ec67a97a7e5a5905575bb3bc20cc60980d6a (patch) | |
| tree | 717ab64b9c5ce64d2dbee12c0170cbe48b4b16dd /RtAudio.cpp | |
| parent | d6662a2e8a5d17b464c19a8804d7765668f7a827 (diff) | |
Use "using namespace std" for roundf instead of std::roundf.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 ) |
