title: Can QMediaPlayer play .wav audio files?
body: <p>I wrote a test application to play '.wav' audio files using qt(latest version) on mac (OSX Yosemite Version 10.10.5). Here is the code from cpp file.</p>
  
  <pre><code>#include "widget.h"
  Widget::Widget(QWidget *parent)
      : QWidget(parent)
  {
  m_player = new QMediaPlayer(this);
  connect(m_player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), this, SLOT(onMediaStatusChanged()));
  connect(m_player, SIGNAL(positionChanged(qint64)), this, SLOT(onProgressed(qint64)));
  m_player-&gt;setMedia(QMediaContent(QUrl("/Users/testUser/Library/Metal.wav")));
  m_player-&gt;play();
  }
  
  Widget::~Widget()
  {
  }
  
  void Widget::onProgressed(qint64 pos)
  {
      qDebug()&lt;&lt;"Position is:"&lt;&lt;pos;
  }
  
  void Widget::onMediaStatusChanged()
  {
      qDebug()&lt;&lt;"Media Status Changed:" &lt;&lt; m_player-&gt;mediaStatus() &lt;&lt; " " &lt;&lt; m_player-&gt;error();
  }
  </code></pre>
  
  <p>and here is the output I am getting</p>
  
  <blockquote>
    <p>Media Status Changed: QMediaPlayer::LoadingMedia QMediaPlayer::NoError<br>
    [11:16:13.300] FigByteFlumeCustomURLOpen signalled err=-12936 (kFigByteFlumeError_BadState) (no provider) at /SourceCache/CoreMedia/CoreMedia-1562.240/Prototypes/FigHTTP/FigByteFlumeCustomURL.c line 1486<br>
    Media Status Changed: QMediaPlayer::InvalidMedia QMediaPlayer::FormatError</p>
  </blockquote>
  
  <p>I don't understand why I am getting Format error and however, the same code (except the path of the track) in windows is working fine.
  Is there a fix for <code>QMediaPlayer</code> on Mac or Should I be using other APIs to play <code>.wav</code> files?</p>
  
  <p>Any help would be appreciated! Thanks.</p>