• 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: MP3 Playback through Audio Units
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MP3 Playback through Audio Units


  • Subject: Re: MP3 Playback through Audio Units
  • From: Nathan Peel <email@hidden>
  • Date: Mon, 27 Apr 2009 03:24:58 -0600

I was told that you can't use RemoteIO to play back AAC/MP3 compressed audio on the iPhone. You will need to use AudioQueueServices.
On Apr 24, 2009, at 7:17 PM, Russ Fellman wrote:


Hello,

On iPhone SDK....

I am trying to playback an MP3 file using two connected audio units, a
mixer and an output.
I had them set up for wav playback using a buffer and render callback
from the mixer to call
the packets from the buffer. Wavs worked fine. The wav was manually
delcared using these lines...

AudioStreamBasicDescription audioFormat;
// Describe format
	audioFormat.mSampleRate			= 44100.00;
	audioFormat.mFormatID			= kAudioFormatLinearPCM;              //
kAudioFormatMPEGLayer3?
	audioFormat.mFormatFlags		= kAudioFormatFlagIsSignedInteger |
kAudioFormatFlagIsPacked;
	audioFormat.mFramesPerPacket	= 1;
	audioFormat.mChannelsPerFrame	= 2;
	audioFormat.mBitsPerChannel		= 16;
	audioFormat.mBytesPerPacket		= 4;
	audioFormat.mBytesPerFrame		= 4;

Is this the best way to go about it, or should I open the MP3 file and
"get" some properties? What would I need?

What would I need to change for MP3 playback? And can a buffer still
be used with this? What would differences
in a wav buffer and mp3 buffer be? Thanks!

-Russ Fellman
_______________________________________________
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

_______________________________________________ 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
References: 
 >MP3 Playback through Audio Units (From: Russ Fellman <email@hidden>)

  • Prev by Date: Re: Save PCM Stream to AIFF File (was How to play RAW PCM data using CA?)
  • Next by Date: Re: Save PCM Stream to AIFF File (was How to play RAW PCM data using CA?)
  • Previous by thread: MP3 Playback through Audio Units
  • Next by thread: Audio queues...again
  • Index(es):
    • Date
    • Thread