mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[Windows] Fix TTS events arriving out of order.
This commit is contained in:
parent
f952bfe998
commit
24d51f7635
3 changed files with 13 additions and 5 deletions
|
|
@ -55,9 +55,9 @@ class TTS_Windows {
|
|||
int id;
|
||||
};
|
||||
HashMap<uint32_t, UTData> ids;
|
||||
bool update_requested = false;
|
||||
|
||||
static void __stdcall speech_event_callback(WPARAM wParam, LPARAM lParam);
|
||||
void _update_tts();
|
||||
|
||||
static TTS_Windows *singleton;
|
||||
|
||||
|
|
@ -73,6 +73,8 @@ public:
|
|||
void resume();
|
||||
void stop();
|
||||
|
||||
void process_events();
|
||||
|
||||
TTS_Windows();
|
||||
~TTS_Windows();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue