From 3b1331c16ed513ec92f41d13692bcbe1792c3d1a Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Wed, 18 Oct 2017 12:00:00 -0300 Subject: Fix compilation of ASIO and WASAPI backends in MingW/Ubuntu. Warnings/errors "unused function" are from the unicode conversion functions on Windows, and "unused but set variable" is from ASIO source code; we disable these warnings on Windows builds. --- RtAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RtAudio.cpp') diff --git a/RtAudio.cpp b/RtAudio.cpp index d2ac6b9..1110394 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -4458,7 +4458,7 @@ bool RtApiWasapi::probeDeviceOpen( unsigned int device, StreamMode mode, unsigne if ( sampleRate != deviceInfo.preferredSampleRate ) { errorType = RtAudioError::INVALID_USE; - std::stringstring ss; + std::stringstream ss; ss << "RtApiWasapi::probeDeviceOpen: " << sampleRate << "Hz sample rate not supported. This device only supports " << deviceInfo.preferredSampleRate << "Hz."; -- cgit v1.2.3