• 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
Re: iOS - Play streaming(mp3) audio with effects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS - Play streaming(mp3) audio with effects


  • Subject: Re: iOS - Play streaming(mp3) audio with effects
  • From: "Hank Heijink (Mailinglists)" <email@hidden>
  • Date: Thu, 31 Mar 2011 09:27:57 -0400

On Mar 30, 2011, at 11:14 PM, Sasikumar JP wrote:

> I am new to iOS Audio Technology.
> I am developing an application which will play streaming audio(mp3), planning to add some effects like iPod Equalizer,Pan Control.
>
> I have tried to use Matt Gallagher's AudioStreamer API (http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html).
> I was able to play the streaming audio. but i was not sure how to add the effects using AudioQueue .
>
> From Apple Documentation, i understood that AudioUnit can be used to add Effects. But streaming format should be in Linear PCM.

Audio Units are hosted in an Audio Graph, and they use a different API than AudioQueue. To get linear PCM into your audio units, you'll have to use an instance of AudioConverter to convert between mp3 and linear PCM. Apple's Audio Unit Hosting Guide has a pretty good example of how to set this up:

http://developer.apple.com/library/ios/#documentation/MusicAudio/Conceptual/AudioUnitHostingGuide_iOS/Introduction/Introduction.html

In the callback function that provides the audio to the graph, you call AudioConverterFillComplexBuffer and associate a callback there to provide the audio converter with the mp3 data.

Keep in mind that the number of out-of-the-box effects available to iOS is limited.

Good luck,
Hank

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >iOS - Play streaming(mp3) audio with effects (From: Sasikumar JP <email@hidden>)

  • Prev by Date: [SOLVED] Re: Click in underlying document while sheet displayed?
  • Next by Date: Can't keep untitled windows from opening!
  • Previous by thread: iOS - Play streaming(mp3) audio with effects
  • Next by thread: In App Purchase's SKProductsRequest not working when App is already installed on the device
  • Index(es):
    • Date
    • Thread