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

Can't play wave file with QSound on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.1
    • 5.2.0 Beta1
    • Multimedia
    • None
    • macOS
    • dd11f6d0527bfac17d855909397f66fe816a0d1f

    Description

      testcase

      #include <QApplication>
      #include <QSound>
      #include <QPushButton>
      #include <QDialog>
      
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          
          QDialog dlg;
          QPushButton btn("Push me!", &dlg);
          QSound snd("chat1.wav");
          
          QObject::connect(&btn, SIGNAL(clicked()), &snd, SLOT(play()));
          dlg.show();
          return app.exec();
      }
      

      It works with Qt-4.8.5 but with Qt-5.2.0 I hear nothing.

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            taurus Ivan Romanov
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes