summaryrefslogtreecommitdiffstats
path: root/src/tts/qtexttospeech.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tts/qtexttospeech.cpp')
-rw-r--r--src/tts/qtexttospeech.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tts/qtexttospeech.cpp b/src/tts/qtexttospeech.cpp
index eb6b083..18ab56d 100644
--- a/src/tts/qtexttospeech.cpp
+++ b/src/tts/qtexttospeech.cpp
@@ -368,8 +368,10 @@ void QTextToSpeech::setVolume(double volume)
{
Q_D(QTextToSpeech);
volume = qMin(qMax(volume, 0.0), 1.0);
- if (d->m_engine && d->m_engine->setVolume(volume))
+ if (d->m_engine && d->m_engine->setVolume(volume)) {
emit volumeChanged(volume);
+ emit volumeChanged(static_cast<int>(volume));
+ }
}
double QTextToSpeech::volume() const