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

QTextToSpeech m_utteranceCounter does not actually represent index in queue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • Speech
    • None
    • All

    Description

      The description of enqueue says

      "Adds \a utterance to the queue of texts to be spoken, and starts speaking.
       Returns the index of the text in the queue, or -1 in case of an error."

      But m_utteranceCounter is never actually decremented and only zeroed in Stop(). So if you never call stop but keep queueing, then this value grows indefinitely. So this doesn't actually represent the index correctly, as it isn't decremented when dequeueing. I would think you should either decrement m_utteranceCounter where m_pendingUtterances is dequeued in updateState, or just return the size of the queue -1 as that is where the enqueue string will be.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            htramsey Holden Ramsey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes