From 0645e8f4669293e388da44aeeb3f4c05f3d087b8 Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Wed, 18 Oct 2017 14:50:48 -0300 Subject: Remove use of C++11 std::to_string in WASAPI code. --- RtAudio.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'RtAudio.cpp') diff --git a/RtAudio.cpp b/RtAudio.cpp index 21d6192..d2ac6b9 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -3691,6 +3691,7 @@ static const char* getAsioErrorString( ASIOError result ) #include #include #include +#include //============================================================================= @@ -4457,7 +4458,11 @@ bool RtApiWasapi::probeDeviceOpen( unsigned int device, StreamMode mode, unsigne if ( sampleRate != deviceInfo.preferredSampleRate ) { errorType = RtAudioError::INVALID_USE; - errorText_ = "RtApiWasapi::probeDeviceOpen: " + std::to_string( sampleRate ) + "Hz sample rate not supported. This device only supports " + std::to_string( deviceInfo.preferredSampleRate ) + "Hz."; + std::stringstring ss; + ss << "RtApiWasapi::probeDeviceOpen: " << sampleRate + << "Hz sample rate not supported. This device only supports " + << deviceInfo.preferredSampleRate << "Hz."; + errorText_ = ss.str(); goto Exit; } -- cgit v1.2.3