Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69935

QTextToSpeechProcessor volume member being int instead of double

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0
    • 5.10.1, 5.11.0, 5.11.1
    • Speech
    • None
    • All
    • bdeba8eab85eff95b114617b20e520e3d63f03b8

    Description

      I'm developing a plugin for Nuance Vocalizer TTS, I subclassed QTextToSpeechProcessor for that purpose, and I'm having trouble with volume values when volume member being an integer.

      This method recieves double value between 0.0 and 1.0 and sets m_volume to 0 or 1 (if value being 1.0) : 

      bool QTextToSpeechProcessor::setVolume(double volume)
      {
          QMutexLocker lock(&m_lock);
          if (volume >= 0.0 && volume <= 1.0) {
              if (updateVolume(volume)) {
                  m_volume = volume;
                  qDebug() << "m_volume is : " << m_volume;
                  return true;
              }
          }
          return false;
      }
      

      When member changed to double it works as it should.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            frederik Frederik Gladhorn
            dgrahovac Denis Grahovac
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes