Sorry, I misunderstod the question.
Just now I opened this example. They work on low-level with the file and use OpenGL to draw it.
AVAudioPlayer does not provide such things. Copy the classes from this example and use them.