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 | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/WinterSpeak/src')
-rw-r--r-- | plugins/WinterSpeak/src/DialogConfigActive.cpp | 2 | ||||
-rw-r--r-- | plugins/WinterSpeak/src/SpeechApi40a.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/WinterSpeak/src/DialogConfigActive.cpp b/plugins/WinterSpeak/src/DialogConfigActive.cpp index dad1d5153b..d2ca1ee64f 100644 --- a/plugins/WinterSpeak/src/DialogConfigActive.cpp +++ b/plugins/WinterSpeak/src/DialogConfigActive.cpp @@ -112,7 +112,7 @@ void DialogConfigActive::notify(HWND hwndDlg, LPARAM lParam) if (nm->iColumn == -1)
break;
- DWORD hitFlags;
+ uint32_t hitFlags;
HANDLE hItem = (HANDLE)SendDlgItemMessage(hwndDlg, IDC_ACTIVE_USERS, CLM_HITTEST, (WPARAM)&hitFlags, MAKELPARAM(nm->pt.x, nm->pt.y));
if (hItem == nullptr || !(hitFlags & CLCHT_ONITEMEXTRA))
break;
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))) {
|