You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Replace Array return types with TypedArray
This commit is contained in:
@@ -322,8 +322,8 @@ bool DisplayServerX11::tts_is_paused() const {
|
||||
return tts->is_paused();
|
||||
}
|
||||
|
||||
Array DisplayServerX11::tts_get_voices() const {
|
||||
ERR_FAIL_COND_V(!tts, Array());
|
||||
TypedArray<Dictionary> DisplayServerX11::tts_get_voices() const {
|
||||
ERR_FAIL_COND_V(!tts, TypedArray<Dictionary>());
|
||||
return tts->get_voices();
|
||||
}
|
||||
|
||||
|
||||
@@ -308,7 +308,7 @@ public:
|
||||
#ifdef SPEECHD_ENABLED
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user