title: QAudioOutput in Qt5 is not producing any sound
body: <p>I’m working under kubuntu 12.10 and developping an application into which i need to generate some sound into a QIODevice, then play it with QAudioOutput.</p>
  
  <p>I’ve read all the litterature around speaking of how to properly do that, and I think to have done so.</p>
  
  <p>So far I’ve done :</p>
  
  <pre><code>QVector &lt;double&gt; * soundData = SoundGenerator::getSound();
  
  soundBuffer-&gt;open(QIODevice::ReadWrite);
  QDataStream writeStream(soundBuffer);
  foreach(double d, *soundData) {
      char value = d * (2 &lt;&lt; 7);
      //  qDebug() &lt;&lt; "Value : " &lt;&lt; (short int)value;
      writeStream &lt;&lt; value;
  }
  
  QAudioFormat format;
  // Set up the format, eg.
  format.setSampleRate(SoundGenerator::getAudioSampleRate());
  format.setChannelCount(1);
  format.setSampleSize(8);
  format.setCodec("audio/pcm");
  format.setByteOrder(QAudioFormat::LittleEndian);
  format.setSampleType(QAudioFormat::SignedInt);
  QAudioDeviceInfo info(QAudioDeviceInfo::defaultOutputDevice());
  
  audio = new QAudioOutput(format, this);
  if (audio-&gt;error() != QAudio::NoError) {
      qDebug() &lt;&lt; "Problem playing sound";
  }
  
  connect(audio, SIGNAL(stateChanged(QAudio::State)), this, SLOT(aboutToFinish(QAudio::State)));
  </code></pre>
  
  <p>I have also a call to 
  audio->start(soundBuffer)</p>
  
  <p>—
  from another slot
  I do not have any error in the initialization of the QAudioOutput</p>
  
  <p>And I have NO SOUND AT ALL (all other applications have sound, and I’m porting a Qt4 app to Qt5, in Qt4 everything is ok with Phonon)</p>
  
  <p>The aboutToFinish slot is called at the beggining with ActiveState as state, and NoError when calling QAudioOutput::error, but it’s not called anymore, even if waiting far more than the expected generated sound duration.</p>
  
  <p>The sound generation process is not to be put in question, it has been tested by writing wav files, and it works.</p>
  
  <p>Moreover, I have built the multimedia example from Qt’s sources, when it comes to pure audio there is no output (for example in the sprectrum example), on another hand, video plays with the sound perfectly.</p>
  
  <p>Is there any known issue concerning that ? Is that a bug ? Am I doing something wrong ?</p>
  
  <p>Thanks in advance ;)</p>