views:

266

answers:

4

I would like to know from some iphone-Audio expert if there is a way to let a sound play through the line in of the microphone, or at least to play from the speaker (not the receiver) during a call.

I've tried different combinations of AVAudioSessionCategory with kAudioSessionProperty_OverrideAudioRoute, but I've noticed that when the iphone is in a call, it plays sounds only through the receiver.

My best try for the moment is to pick the call in speaker mode, and put the AVSession sound in AVAudioSessionCategoryAmbient, but the result is too bad.

I repeat: i would like to play a sounds through the speaker while listening the call through the receiver.

I've used this in: http://www.pallaudio.com , the app that lets you lie at the phone!

+1  A: 

I'm curious as to what you're trying to achieve by doing so? Besides the fact that this could get your app rejected for non-standard behaviour (I'm sure Apple has some guidelines related to apps playing sounds during a call), this also seems like a sure-fire way to tick off a user (although maybe that's what you're trying to do).

Shaggy Frog
A more ... erhm ... social version of the Pull My Finger app, perhaps?
John Biesnecker
Just what the App Store needs -- another fart-related app!
Shaggy Frog
No, no fart app. Just a functionality I had on my nokia, that it's missing in the app store. When I'm done with it I'll tell you better.
sosergio
A: 

I need to know the answer to this, too. I have a legitimate (non-fart) use case in an app I'm writing. Any help?

Wayne Bryant
A: 

ok, after long finding, the answer is simply: NO!

sosergio
A: 

How this app does it then??

http://www.freshapps.com/big-pallaudio/

David
It uses a smart workaround!
sosergio