1

I'm trying to build a Audio Visualizer when playing from the AVQueuePlayer, I want something similar to this but AVQueuePlayer does not have some of the methods required like [audioPlayer updateMeters], [audioPlayer numberOfChannels] and [audioPlayer averagePowerForChannel:]. Could anyone help me with a workaround to this or link me to a guide to setting up one. I want to use the AVQueuePlayer because of the queue ability however if I can't setup something I would consider managing the queue myself and using AVAudioPlayer.

Thanks for your help.

Johann Burgess
  • 580
  • 6
  • 17

1 Answers1

0

AVQueuePlayer is a subclass of AVPlayer, not AVAudioPlayer, which is why it's "missing" those methods.

You can just use AVAudioPlayer for playback and a MPMediaPickerController for loading up a queue of songs. Take a look at the AddMusic sample code. It's a bit dated, but should get you going.

macshome
  • 939
  • 6
  • 11