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

Warning when using QAudioSink in separate thread for playing PCM audio

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P2: Important P2: Important
    • None
    • 6.6.0
    • Multimedia
    • None
    • Windows

      Warning "QObject::startTimer: Timers can only be used with threads started with QThread" occurred consistently when writing PCM data to QIODevice.
      Crashes also happen sometimes while the warning occurs.

      The source code is here:

      https://github.com/StevenHuang2020/VideoPlayer/blob/9f1cfa79c5b270a6aa06323b5ad52a0440911e5e/src/audio_play_thread.cpp#L94

        1. issue.png
          146 kB
          Steven Huang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            johanseg Jøger Hansegård
            stevenhuang Steven Huang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes