Showing the changes to interface/src/scripting/TTSScriptingInterface.cpp (1 of 37 files). Show all
Unified · Split
| @@ -13,7 +13,7 @@ · 12 unmodified lines | |||
| 13 | #include "avatar/AvatarManager.h" | 13 | #include "avatar/AvatarManager.h" |
| 14 | 14 | ||
| 15 | TTSScriptingInterface::TTSScriptingInterface() { | 15 | TTSScriptingInterface::TTSScriptingInterface() { |
| 16 | #ifdef WIN32 | 16 | #ifdef _WIN32 |
| 17 | // | 17 | // |
| 18 | // Create text to speech engine | 18 | // Create text to speech engine |
| 19 | // | 19 | // |
| @@ -46,7 +46,7 @@ TTSScriptingInterface::TTSScriptingInterface() { · 26 unmodified lines | |||
| 46 | TTSScriptingInterface::~TTSScriptingInterface() { | 46 | TTSScriptingInterface::~TTSScriptingInterface() { |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | #ifdef WIN32 | 49 | #ifdef _WIN32 |
| 50 | class ReleaseOnExit { | 50 | class ReleaseOnExit { |
| 51 | public: | 51 | public: |
| 52 | ReleaseOnExit(IUnknown* p) : m_p(p) {} | 52 | ReleaseOnExit(IUnknown* p) : m_p(p) {} |
| @@ -72,7 +72,7 @@ void TTSScriptingInterface::updateLastSoundAudioInjector() { · 19 unmodified lines | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TTSScriptingInterface::speakText(const QString& textToSpeak) { | 74 | void TTSScriptingInterface::speakText(const QString& textToSpeak) { |
| 75 | #ifdef WIN32 | 75 | #ifdef _WIN32 |
| 76 | WAVEFORMATEX fmt; | 76 | WAVEFORMATEX fmt; |
| 77 | fmt.wFormatTag = WAVE_FORMAT_PCM; | 77 | fmt.wFormatTag = WAVE_FORMAT_PCM; |
| 78 | fmt.nSamplesPerSec = AudioConstants::SAMPLE_RATE; | 78 | fmt.nSamplesPerSec = AudioConstants::SAMPLE_RATE; |