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

QSoundEffect plays choppy WAV sound effects on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.1
    • Multimedia
    • macOS

    Description

      Introduction

      I have a chess GUI application where a particular move, like capture, castling, check, etc., have a distinct sound effect. The sound effects of the very same application are played perfectly fine on Windows, whereas on macOS they are just awful.

      As I read a commit log of Qt on GitHub, there was an audio engine warmup done some time ago for the Windows platform. Maybe we need to do the same for the macOS platform?

      The commit log I read was this: https://github.com/qt/qtmultimedia/commit/5aa899abb67ebdbcc9d0feb994385f1ab12656f7

      (I don't know how far back this goes on macOS, but I noticed this bug using PySide6 version 6.8.1, so Qt6 version 6.8.1 is definitely affected.)

      Additional info

      I preload my sound effects by creating QSoundEffect objects and also set a source for each in my custom class's initializer. This way I should achieve low latency, but no, not on macOS.

      Attachments

        1. SoundEffectPlayer.zip
          145 kB
          Boštjan Mejak
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            pedantichacker Boštjan Mejak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes