title: Is there any way in QT to get raw audio data from mic?
body: <p>I am trying to implement a pitch shifter in QT. So I need to get raw data from mic, somehow transform it and play it back. But I can't figure out how to get raw data, send it to buffer and then, when it's transformed, play it back. At the moment I'm doing something like that, but this is working without buffer and I can't change data that is going to be played.</p>
  
  <pre><code>QAudioFormat format;
  format.setSampleRate(96000);
  format.setChannelCount(1);
  format.setSampleSize(32);
  format.setCodec("audio/pcm");
  format.setByteOrder(QAudioFormat::LittleEndian);
  format.setSampleType(QAudioFormat::UnSignedInt);
  
  audio = new QAudioInput(format, this);
  connect(audio, SIGNAL(stateChanged(QAudio::State)), this, SLOT(handleStateChanged(QAudio::State)));
  
  QIODevice* device = audio-&gt;start();
  connect(device,SIGNAL(readyRead()),this,SLOT(process()));
  
  
  QAudioOutput* output = new QAudioOutput(format, this);
  output-&gt;start(device);
  </code></pre>
  
  <p>Is there any way to do what I'm trying to do?</p>