mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-07 07:41:50 -05:00
Merge commit godotengine/godot@1f47e4c4e3
This commit is contained in:
@@ -103,7 +103,7 @@ void TTS_Linux::speech_event_callback(size_t p_msg_id, size_t p_client_id, SPDNo
|
||||
}
|
||||
}
|
||||
|
||||
void TTS_Linux::_load_voices() {
|
||||
void TTS_Linux::_load_voices() const {
|
||||
if (!voices_loaded) {
|
||||
SPDVoice **spd_voices = spd_list_synthesis_voices(synth);
|
||||
if (spd_voices != nullptr) {
|
||||
@@ -195,7 +195,7 @@ Array TTS_Linux::get_voices() const {
|
||||
_THREAD_SAFE_METHOD_
|
||||
|
||||
ERR_FAIL_NULL_V(synth, Array());
|
||||
const_cast<TTS_Linux *>(this)->_load_voices();
|
||||
_load_voices();
|
||||
|
||||
Array list;
|
||||
for (const KeyValue<String, VoiceInfo> &E : voices) {
|
||||
|
||||
Reference in New Issue
Block a user