From 9e707210297b564379ee12ae2b9e41d8a85fd7a0 Mon Sep 17 00:00:00 2001 From: pixhawk Date: Tue, 13 Apr 2010 09:07:51 +0200 Subject: [PATCH] Windows Speech API (SAPI) is now only supported with MSVC compiler. --- qgroundcontrol.pri | 2 +- src/GAudioOutput.cc | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/qgroundcontrol.pri b/qgroundcontrol.pri index 1a81b2a..e18f94c 100644 --- a/qgroundcontrol.pri +++ b/qgroundcontrol.pri @@ -133,7 +133,7 @@ win32 { -lmingw32 -lSDLmain -lSDL -mwindows INCLUDEPATH += $$BASEDIR/lib/sdl/include \ - C:\Program Files\Microsoft SDKs\Windows\v7.0\Include + "C:\Program Files\Microsoft SDKs\Windows\v7.0\Include" debug { DESTDIR = $$BASEDIR/bin diff --git a/src/GAudioOutput.cc b/src/GAudioOutput.cc index bb89549..0eec50a 100644 --- a/src/GAudioOutput.cc +++ b/src/GAudioOutput.cc @@ -40,8 +40,8 @@ This file is part of the PIXHAWK project #include #endif -#ifdef _WIN32 -//#include +// Speech synthesis is only supported with MSVC compiler +#if _MSC_VER #include using System; using System.Speech.Synthesis; @@ -118,7 +118,8 @@ bool GAudioOutput::say(QString text, int severity) if (!emergency) { -#ifdef _WIN32 + // Speech synthesis is only supported with MSVC compiler +#if _MSC_VER SpeechSynthesizer synth = new SpeechSynthesizer(); synth.SelectVoice("Microsoft Anna"); synth.SpeakText("Hello, world!");