• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Accessing audio information, such as peak volume, from music playing in iPod app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing audio information, such as peak volume, from music playing in iPod app


  • Subject: Accessing audio information, such as peak volume, from music playing in iPod app
  • From: abcd abcd <email@hidden>
  • Date: Thu, 25 Jun 2009 14:05:14 -0400

Hi,

I am creating an iPhone application that is to run while music from the iPod application is playing. I need information about the music currently being played by the iPod application. Specifically, at a given time, I need to know the volume at different frequency bands and the peak volume of the audio. If this is not possible, the average power and peak power of the audio would be useful.

For example, while playing a song using AVAudioPlayer I can use the averagePowerForChannel: and peakPowerForChannel: methods to retrieve this information. Unfortunately, it is not so simple for audio coming from an external application (the iPod).

I considered using MPMusicPlayerController to find out the song currently being played. Then, I thought, I could play the same song in AVAudioPlayer to access the information I need. However, I cannot play a song from the iPod library using AVAudioPlayer and, as a result, this idea does not work.

I noticed that AVAudioRecorder supports audio level metering. Therefore, I considered using this by changing the input source to be the audio output of the iPhone. Because I do not know how to do this, this idea also does not work.

I would really appreciate any advice for how I can retrieve the information I need from a song playing in the iPod application.

Thank you in advance!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: iPhone OS 3.0 and AudioQueueStart
  • Next by Date: Re: iphone Audio Unit mixer balance
  • Previous by thread: Re: Core Audio Mailing List Search
  • Next by thread: Quasi-realtime threads
  • Index(es):
    • Date
    • Thread