diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2017-10-18 14:50:48 -0300 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2017-10-18 17:32:57 -0300 |
| commit | 0645e8f4669293e388da44aeeb3f4c05f3d087b8 (patch) | |
| tree | 9feffca54bde0d929776884632f36ddd90192ba5 /RtAudio.cpp | |
| parent | 853e5b7cde233394a80acbf5ae169a416c8ee105 (diff) | |
Remove use of C++11 std::to_string in WASAPI code.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 <avrt.h> #include <mmdeviceapi.h> #include <functiondiscoverykeys_devpkey.h> +#include <sstream> //============================================================================= @@ -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; } |
