I'm trying to create a program, using Qt (c++), which can plot the amplitude Signal (plot like audacity but dynamic waveform) when I playback an audio file (.wav, .mp3) using QAudiooutput
and QIODevice
.
What I've done:
with QAudioouput
I can play the any audio file, with qwtplot I can plot any signal in 2D, in this case, x-axis will be time and y-axis will be the amplitude.
Now, my problem is how to get the amplitude for each second (time)?
Any help would be appreciated.