Re: Using AVAudioSession with remote I/O audio unit to read and process microphone data
Re: Using AVAudioSession with remote I/O audio unit to read and process microphone data
- Subject: Re: Using AVAudioSession with remote I/O audio unit to read and process microphone data
- From: Daniel Hams <email@hidden>
- Date: Fri, 06 Dec 2013 21:31:52 +0000
Hi Tusi,
The aurioTouch2 sample application from Apple here:
https://developer.apple.com/library/iOS/samplecode/aurioTouch2/Introduction/Intro.html
is a good place to start. Yes, it’s the C API AVSession and a little cryptic given the FFT and GLES usage in there, but the basic idea is more or less the same replacing the related AVSession calls with appropriate AVAudioSession calls.
Funnily enough I’ve been working on trying to piece together the calls in a project to do this for my personal application that you can have a look at:
https://github.com/danielhams/AudioTestApplication
Of interest might be the
MDAAVSessionAudioInteraction.h
MDAAVSessionAudioInteraction.mm
Note: I’m assuming usage similar to a sample editor - audio stops when the app isn’t active.
Note2: Ignore the MDAAudioSession* bits, I’m doing a comparison between old C and new ObjC to see what works and doesn’t
If anyone else cares to take a look and comment / improve it, I’d be most grateful.
Cheers,
Dan
On 6 Dec 2013, at 20:18, Tusi Chowdhury <email@hidden> wrote:
> Hi,
>
> Since as of iOS 7, the C API has been deprecated, how do we use AVAudioSession to get live microphone data using remote I/O unit, and process or read it on the fly for a mic based application?
>
> From what I understand, AVAudioRecorder only records the data to a local file.
>
> I was to get access to the audio buffer on the fly and process live on the app.
>
> I haven’t managed to find any sample code that uses remote I/O audio unit with AVAudioSession API.
>
> Could any please point me towards the right resources?
>
> Thanks!
>
> Regards,
>
> Tusi
> _______________________________________________
> 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