Replace Array return types with TypedArray
This commit is contained in:
parent
b9ea0e1338
commit
8be27dc59e
110 changed files with 298 additions and 272 deletions
|
|
@ -296,7 +296,7 @@ void DisplayServerJavaScript::update_voices_callback(int p_size, const char **p_
|
|||
}
|
||||
}
|
||||
|
||||
Array DisplayServerJavaScript::tts_get_voices() const {
|
||||
TypedArray<Dictionary> DisplayServerJavaScript::tts_get_voices() const {
|
||||
godot_js_tts_get_voices(update_voices_callback);
|
||||
return voices;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ public:
|
|||
// tts
|
||||
virtual bool tts_is_speaking() const override;
|
||||
virtual bool tts_is_paused() const override;
|
||||
virtual Array tts_get_voices() const override;
|
||||
virtual TypedArray<Dictionary> tts_get_voices() const override;
|
||||
|
||||
virtual void tts_speak(const String &p_text, const String &p_voice, int p_volume = 50, float p_pitch = 1.f, float p_rate = 1.f, int p_utterance_id = 0, bool p_interrupt = false) override;
|
||||
virtual void tts_pause() override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue