Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136677 Support moving QtMM classes to treads
  3. QTBUG-91210

warning when move QAudioOutput to other thread

XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Multimedia
    • Linux/X11
    • c2306109b (dev), 243ea4ec4 (6.9), 0f982d2ef (tqtc/lts-6.8)

      When executing the start () method of QAudioOutput that is a member of an object that has been moved to another thread, the warning QObject :: startTimer: Timers cannot be started from another thread is displayed.

      Analyzing the QAudioOutput's constructor code I noticed that QAudioDeviceFactory does not attach the parent, as a result of moving to another thread the only QAudioOutput member is not moved, causing the warning.

      I attached a simple project to illustrate.

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

            timblechmann tim blechmann
            gustavoferreira Gustavo Ferreira
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change