History

enable warnings as errors

HifiExperiments committed 1 year ago

Commit 6ff5e171 parent a7805e737 files · +89 −85Browse files

Showing the changes to interface/src/scripting/TTSScriptingInterface.cpp (1 of 37 files). Show all

Unified · Split

interface/src/scripting/TTSScriptingInterface.cpp+3−3
@@ -13,7 +13,7 @@ · 12 unmodified lines
13#include "avatar/AvatarManager.h"13#include "avatar/AvatarManager.h"
14 14
15TTSScriptingInterface::TTSScriptingInterface() {15TTSScriptingInterface::TTSScriptingInterface() {
16#ifdef WIN3216#ifdef _WIN32
17 //17 //
18 // Create text to speech engine18 // Create text to speech engine
19 //19 //
@@ -46,7 +46,7 @@ TTSScriptingInterface::TTSScriptingInterface() { · 26 unmodified lines
46TTSScriptingInterface::~TTSScriptingInterface() {46TTSScriptingInterface::~TTSScriptingInterface() {
47}47}
48 48
49#ifdef WIN3249#ifdef _WIN32
50class ReleaseOnExit {50class ReleaseOnExit {
51public:51public:
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
74void TTSScriptingInterface::speakText(const QString& textToSpeak) {74void TTSScriptingInterface::speakText(const QString& textToSpeak) {
75#ifdef WIN3275#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;