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

[REG 6.3.2->6.5.2] QMediaPlayer always captures the audio device what blocks sleep mode on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5, 6.6.1
    • 6.5.2, 6.6.0 RC
    • Multimedia
    • None
    • Windows
    • 194b1b22d (dev), ac55a1c16 (6.6), f63286ea8 (6.5)

    Description

      When a QMediaPlayer object is created, the audio device is immediately captured even though playback has not started. This leads to the fact that the Windows system cannot go into sleep mode using a timer (i.e., in the system settings it is specified to go into sleep mode after, for example, 2 minutes of inactivity).

      To check whether an audio device is in use in Windows, you can use the command (in the terminal):

      powercfg /requests 

      Here is an example of the output when the device is in use:

      powercfg /requests
      DISPLAY:
      None.SYSTEM:
      [DRIVER] USB Audio Device (USB\VID_09DA&PID_2701&MI_00\9&2ac84e6b&0&0000)
      An audio stream is currently in use.AWAYMODE:
      None.EXECUTION:
      None.PERFBOOST:
      None.ACTIVELOCKSCREEN:
      None. 

      There is no this problem on version Qt6.3.2

      I am attaching a minimal project to reproduce the problem:

      QtWindowsAudioDeviceCaptureBugTest.zip

       

      Attachments

        Issue Links

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

          Activity

            People

              padubsky Pavel Dubsky
              rumgot rumgot
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes