summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/tts_linux.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-27 21:40:23 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-27 21:40:23 +0200
commitb1ae184348b9de893d98dcd8e671d9df6ee599db (patch)
tree4520661ef7ab44f9e86c9dc3e01f3fec0c04a566 /platform/linuxbsd/tts_linux.cpp
parentbcf8a21e5f26e9563edecc29c520c0eabfc5f169 (diff)
parenta0253e593cbcde471d32b42d05ecd5fb34749103 (diff)
downloadredot-engine-b1ae184348b9de893d98dcd8e671d9df6ee599db.tar.gz
Merge pull request #84017 from rfht/master
TTS_Linux: Fix size_t template issue on OpenBSD by using int consistently
Diffstat (limited to 'platform/linuxbsd/tts_linux.cpp')
-rw-r--r--platform/linuxbsd/tts_linux.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/platform/linuxbsd/tts_linux.cpp b/platform/linuxbsd/tts_linux.cpp
index 96745ab8ae..46291bb4da 100644
--- a/platform/linuxbsd/tts_linux.cpp
+++ b/platform/linuxbsd/tts_linux.cpp
@@ -82,11 +82,11 @@ void TTS_Linux::speech_init_thread_func(void *p_userdata) {
void TTS_Linux::speech_event_index_mark(size_t p_msg_id, size_t p_client_id, SPDNotificationType p_type, char *p_index_mark) {
TTS_Linux *tts = TTS_Linux::get_singleton();
if (tts) {
- callable_mp(tts, &TTS_Linux::_speech_index_mark).call_deferred(p_msg_id, p_client_id, (int)p_type, String::utf8(p_index_mark));
+ callable_mp(tts, &TTS_Linux::_speech_index_mark).call_deferred((int)p_msg_id, (int)p_type, String::utf8(p_index_mark));
}
}
-void TTS_Linux::_speech_index_mark(size_t p_msg_id, size_t p_client_id, int p_type, const String &p_index_mark) {
+void TTS_Linux::_speech_index_mark(int p_msg_id, int p_type, const String &p_index_mark) {
_THREAD_SAFE_METHOD_
if (ids.has(p_msg_id)) {
@@ -97,7 +97,7 @@ void TTS_Linux::_speech_index_mark(size_t p_msg_id, size_t p_client_id, int p_ty
void TTS_Linux::speech_event_callback(size_t p_msg_id, size_t p_client_id, SPDNotificationType p_type) {
TTS_Linux *tts = TTS_Linux::get_singleton();
if (tts) {
- callable_mp(tts, &TTS_Linux::_speech_event).call_deferred(p_msg_id, p_client_id, (int)p_type);
+ callable_mp(tts, &TTS_Linux::_speech_event).call_deferred((int)p_msg_id, (int)p_type);
}
}
@@ -119,7 +119,7 @@ void TTS_Linux::_load_voices() {
}
}
-void TTS_Linux::_speech_event(size_t p_msg_id, size_t p_client_id, int p_type) {
+void TTS_Linux::_speech_event(int p_msg_id, int p_type) {
_THREAD_SAFE_METHOD_
if (!paused && ids.has(p_msg_id)) {
@@ -226,7 +226,7 @@ void TTS_Linux::speak(const String &p_text, const String &p_voice, int p_volume,
if (is_paused()) {
resume();
} else {
- _speech_event(0, 0, (int)SPD_EVENT_BEGIN);
+ _speech_event(0, (int)SPD_EVENT_BEGIN);
}
}