title: Amplitude of Audio Tracks
body: <p>I want to develop an audio editor using Qt.
  For this, I need to plot a waveform of the music track which I think should be a plot of peak amplitude of sound versus time(please correct me if I am wrong).</p>
  
  <p>Currently, I have been using Phonon::AudioOutput class object as an audio sink and connected it with my Phonon::MediaObject class object to play the audio file.</p>
  
  <p>Now, to draw the waveform I need to know the amplitude of audio track at every second (,or so) from this AudioOutput object so that I can draw a line (using QPainter) of length proportional to sound frequency at different times and hence, obtain my waveform.</p>
  
  <p>So, please help me on how to obtain amplitude of audio tracks at different times.</p>
  
  <p>Secondly,am I using the correct way of plotting waveforms of audio tracks - plotting amplitudes of sound against time by plotting lines by QPainter object on a widget at different times.</p>
  
  <p>Thanks.</p>