AVAudioPlayer - Metering - Want to build a waveform (graph)

I need to build a visual graph that represents voice levels (dB) in a recorded file. I tried to do it this way: NSError *error = nil; AVAudioPlayer *meterPlayer = [[AVAudioPlayer alloc]