title: Audio stream recording and playback using Qt
body: <p>I am trying to develop a multimedia program using Qt which gets an audio input stream from a microphone (using <code>QAudioInput</code>), then stores the sampled bytes in memory for 60 milliseconds, then play it back (using <code>QAudioOutput</code>).</p>
  
  <p>The <a href="http://developer.qt.nokia.com/doc/qt-4.8/qaudiooutput.html#details" rel="nofollow">documentation</a> for <code>QAudioOuput</code> has an example which does most of this, but it uses a file as its data source instead. How can I modify this to use an input stream instead?</p>