• 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
Best way to simultaneously decode two compressed mp3 files into LPCM using hardware codec?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best way to simultaneously decode two compressed mp3 files into LPCM using hardware codec?


  • Subject: Best way to simultaneously decode two compressed mp3 files into LPCM using hardware codec?
  • From: cc laan <email@hidden>
  • Date: Mon, 27 Sep 2010 21:11:57 +0200

Hi,

This is my first post, and I'm an iPhone developer, so sorry if it's not appropriate to ask iPhone questions here. I just figured my question is still relevant to core audio on osx. 

I'm trying to play two mp3 audio files at the same time, but I also need access to raw pcm sample data for signal processing.

I have this working using two AudioQueue's and AQOfflineRender.

The problem is, if I create two AudioQueue's, then I have to set one to use the software decoder which is slower (this might be an iPhone specific constraint.) 

Is there a recommended way to simultaneously render packets from more than one file into raw samples using only one AudioQueue/AQOfflineRender? (in order to use the hardware decoder for both)

If I could somehow get AQOfflineRender to pull from two different AudioQueueBuffer's that contain compressed packets from separate files, it seems like this would work. I just can't figure out how to coerce the Audio Queue stuff into allowing this.

I also have this working with the ExtAudioFile stuff, but it seems much slower than AQOfflineRender.

Thanks for any help,
-chris
 _______________________________________________
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

  • Follow-Ups:
    • Re: Best way to simultaneously decode two compressed mp3 files into LPCM using hardware codec?
      • From: William Stewart <email@hidden>
  • Prev by Date: Simple midi packet send.
  • Next by Date: Re: Best way to simultaneously decode two compressed mp3 files into LPCM using hardware codec?
  • Previous by thread: Simple midi packet send.
  • Next by thread: Re: Best way to simultaneously decode two compressed mp3 files into LPCM using hardware codec?
  • Index(es):
    • Date
    • Thread