Play iPhone audio in ear speker -
How can we play audio from the app using the ear speaker The audio sounds like something one is talking on the other end of the phone.
Thanks
It looks like what you are looking for is: (
Override audio session category route
Specifies whether the default audio path should be overridden for the PlayAndRecord category.
enum {kAudioSessionOverrideAudioRoute_None = 0, kAudioSessionOverrideAudioRoute_Speaker = 'spkr'}; constants kAudioSessionOverrideAudioRoute_None
specifies, kAudioSessionCategory_PlayAndRecord
Category, that output audio should go on the receiver This is the default output audio path for this category.
Discussion
kAudioSessionOverrideAudioRoute_Speaker
kAudioSessionCategory_PlayAndRecord
category, output audio
kAudioSessionCategory_PlayAndRecord
class simultaneously supports input and output. You can use this category, for example, to add an effect to the audio coming in the iPhone's microphone, the output goes to the audio receiver for this category-when you press your ear on a phone call Catch up. kAudioSessionOverrideAudioRoute_Speaker
lets you direct output audio to the speaker at the bottom of the phone.
Comments
Post a Comment