Re: initializing remoteIO AU on iphone
Re: initializing remoteIO AU on iphone
- Subject: Re: initializing remoteIO AU on iphone
- From: Doug Wyatt <email@hidden>
- Date: Wed, 31 Mar 2010 18:37:25 -0700
On Mar 31, 2010, at 17:47 , Doug McCoy wrote:
> I have an app that uses the remoteIO AU for iphone, based originally on the AURIOTouch example.
>
> I use the AU for input and output, but on iPod Touch I need special logic to detect the presence of an input device. That is easy. But when the audio route changes, i need to dispose of the AU and re-initialize it, per the example code.
>
> When re-initializing the AU, AudioUnitInitialize() sometimes returns '!act'. I can't seem to find any documentation on these result codes.
$ grep -r '!act' /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/System/Library/Frameworks/
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioServices.h: kAudioSessionNotActiveError = '!act',
There was a recent thread about the removal of an iPod touch's microphone and AudioSession interrupts but the details escape me...
Doug
_______________________________________________
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