title: how to get audio file from an QByteArray
body: <p>I capture sound   form microphone  with QAudioInput,and save it  in Buffer  now I want to save  this sound in  Qfile for example audio.wav. I try this  code.</p>
  
  <pre><code>QByteArray data;
  QFile file("C:/asus/audio.wav");
  file.open(QIODevice::WriteOnly);
  file.write(data);
  file.close();
  </code></pre>
  
  <p>this code doesn't work , when I play Audio.wav , its not the sound that I've captured </p>
  
  <p>thank yo for help</p>