diff options
author | Fabio Falsini <falsinsoft@gmail.com> | 2020-07-13 19:20:35 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-08-05 19:04:53 +0000 |
commit | c484d432a0980a89c9faf95e41b8bd224aaf114f (patch) | |
tree | a2bf50bd69575bf08df176c2d47b0841a1121626 | |
parent | 0bf8665aa4b90c004fce9314f9fdbed4c94598a5 (diff) |
Add missing rate() method in java class
In the TextToSpeech android plugin, the c++ code asks through JNI
for the rate value, but the corresponding rate() method in the java class
is missing. An exception is then generated and a zero rate value is returned.
This patch adds the missing rate() method to the java source file.
Pick-to: 5.15
Change-Id: If7d1af03ed106774e33b2d50ebe84625c7bca431
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
-rw-r--r-- | src/plugins/tts/android/jar/src/org/qtproject/qt5/android/speech/QtTextToSpeech.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/tts/android/jar/src/org/qtproject/qt5/android/speech/QtTextToSpeech.java b/src/plugins/tts/android/jar/src/org/qtproject/qt5/android/speech/QtTextToSpeech.java index 83332fc..ed14347 100644 --- a/src/plugins/tts/android/jar/src/org/qtproject/qt5/android/speech/QtTextToSpeech.java +++ b/src/plugins/tts/android/jar/src/org/qtproject/qt5/android/speech/QtTextToSpeech.java @@ -174,6 +174,11 @@ public class QtTextToSpeech return success; } + public float rate() + { + return mRate; + } + public int setRate(float rate) { if (Float.compare(rate, mRate) == 0) |