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).
My code is kind of bats**t crazy. Still, hope this helps.
--Chris
|