Re: iPhone feedback problem
Re: iPhone feedback problem
- Subject: Re: iPhone feedback problem
- From: Dan Birns <email@hidden>
- Date: Mon, 9 Feb 2009 09:09:43 -0800
I think I've solved my problem, so I'm reporting back to benefit whoever else may encounter this.
It wasn't a simple one-step fix. There were a number of problems. In addition, our 3g phone responded very differently from the v1 phone.
Essentially, I had to tighten up all the calls to
AudioSessionSetProperty (kAudioSessionProperty_AudioCategory...
and
AudioSessionSetActive (...);
and everything to do with AudioRoute
Originally, my app was set to kAudioSessionCategory_PlayAndRecord, which was wrong. However fixing that didn't entirely fix the problem. Another thing that I noticed was that I had AudioRoute set to Speaker when the category was Record, and then a few moments late the route was set to microphone. This definitely caused problems on the 3G. It was a timing issue: I had to ensure that the route was Microphone before starting to record.
One of the problems I had was deciding where to put some of this code. I had some of it in a UIViewController when the screen changed, and some of it was more internal when I stopped and started the recorder.
I believe it's all clean now...
--Daniel Begin forwarded message: Date: February 6, 2009 1:48:26 PM PST Subject: iPhone feedback problem
I have an iPhone recorder app (which just shipped yesterday!) Epiphany, which has a rare problem that I need to fix. When I start it, after a few seconds it becomes apparent that it's getting feedback. The audio appears to be coming out of the speaker (or perhaps receiver?).
I don't know how to recreate this. It happened, after perhaps hundreds of uses, for the first time to me yesterday. I believe others have occasionally seen this.
I do default to using the speaker during playback.
Any ideas?
|
_______________________________________________
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