• 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: AudioQueueProcessingTap...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueueProcessingTap...


  • Subject: Re: AudioQueueProcessingTap...
  • From: Ron Burgundy <email@hidden>
  • Date: Mon, 27 Jan 2014 13:39:21 -0700

Im not sure if you got my followup response / email. it was kind of long winded and i figured it might be a long shot that i got a response on it (or you had time to read it all)

ive followed your example on the AQProcessingTap and it seems to go above and beyond what i want to do. i just want to try a last ditch attempt to graph the audio in some fashion on an processing tap. i figured since i dont need to modify the data before it plays siphoning was the choice. however, i can't get siphoing to work! it always gives me a -50 error any time i try to create the tap in that mode. 

i essentially want to follow what a coworker is doing in windows (so i have to slightly modify the process of making a copy of the audio sample, downsampling it and then processing it in smaller chunks every .1 second) converting that chunk into floats and then shoving it through EZAudioPlot. i really wish i could understand the plotting of the wave form better (i just can't wrap my head around it) then maybe i could figure out a way to use the same code he is on the windows end to plot the audio rather than converting it into floating point audio first.

anyhow, if you can provide me any tips on what i need to do differently to get siphoning working that would be great, i tried changing the mode to preeffects and it doesnt error out creating the tap (it just crashes because i dont process the audio properly as it would be needed to in pre/post effects) 

please help! 

(also if you didnt get my first email i just wanted to take a second to thank you again for your awesome website and book!)


On Jan 15, 2014, at 9:15 AM, Chris Adamson <email@hidden> wrote:

On Jan 15, 2014, at 10:34 AM, Ron Burgundy <email@hidden> wrote:

At VERY least if someone could just provide some example code of using AudioQueueProcessingTap in an audio queue it would be highly appreciated.

I thought Apple had official AQ Tap sample code out now? I don't see it in Xcode's doc viewer… maybe a WWDC 2013 thing?

Anyways, in late 2012, I wrote an AQ Tap demo to run AQ data through an arbitrary AUGraph. Long story short: it applies effects to web radio. Examples include AUReverb2 and AUNewTimePitch (which is technically inappropriate because it's a converter, not an effect).

* Corrected (for iOS 6.1, anyways) code in this blog: http://www.subfurther.com/blog/2013/02/23/correcting-core-audio/
* Discussion of how it works (with bad code that you should not use) in this blog: http://www.subfurther.com/blog/2012/10/30/cocoaconf-portland-12-and-the-audioqueueprocessingtap/

My code is kind of bats**t crazy. Still, hope this helps.

--Chris

P.S. Also, I'm not sure if the URL in the sample code still works. http://shoutcast.cbcradio3.com/ is gone, but http://1661.live.streamtheworld.com:80/CBC_R3_WEB_SC should work instead. The code also works with AAC streams (I test with http://armitunes.com:8010/ ), but you have to change the hint for AudioFileStreamOpen() to kAudioFileAAC_ADTSType (if I were rigorous, I would have parsed the URL response to figure out whether I was getting MP3 or AAC, instead of hard-coding it).

 _______________________________________________
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: 
 >AudioQueueProcessingTap... (From: Ron Burgundy <email@hidden>)
 >Re: AudioQueueProcessingTap... (From: Chris Adamson <email@hidden>)

  • Prev by Date: Re: Does iOS audio input work with simulator?
  • Next by Date: AudioServerPlugin: kAudioDevicePropertyDeviceIsAlive
  • Previous by thread: Re: AudioQueueProcessingTap...
  • Next by thread: Re: Delay in volume change using keyboard
  • Index(es):
    • Date
    • Thread