diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
tree | b0a227d6e087c41958cc84d27bc323353248aae5 /plugins/WinterSpeak/src/SpeechApi40a.cpp | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/WinterSpeak/src/SpeechApi40a.cpp')
-rw-r--r-- | plugins/WinterSpeak/src/SpeechApi40a.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/WinterSpeak/src/SpeechApi40a.cpp b/plugins/WinterSpeak/src/SpeechApi40a.cpp index b562e45369..2b46a085e2 100644 --- a/plugins/WinterSpeak/src/SpeechApi40a.cpp +++ b/plugins/WinterSpeak/src/SpeechApi40a.cpp @@ -92,7 +92,7 @@ bool SpeechApi40a::say(const std::wstring &sentence) }
else {
SDATA data;
- data.dwSize = (DWORD)(sentence.size() * sizeof(wchar_t));
+ data.dwSize = (uint32_t)(sentence.size() * sizeof(wchar_t));
data.pData = (wchar_t *)sentence.c_str();
m_tts_central->TextData(CHARSET_TEXT, 0, data, nullptr, IID_ITTSBufNotifySinkA);
}
@@ -109,7 +109,7 @@ bool SpeechApi40a::setVolume(int volume) return true;
}
- DWORD new_vol = volume / 100.0 * 0xffff;
+ uint32_t new_vol = volume / 100.0 * 0xffff;
new_vol |= new_vol << 16;
if (FAILED(m_tts_attribs->VolumeSet(new_vol))) {
|