Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: How to access the top ear speaker
is a discussion within theiPhone / iPod Touch SDK | Development Discussion
forums, a part of the3rd Party Apps For iPhone | iPod Touch
section;Has anyone seen a 3rd party native app access the top speaker (not the player speaker at the bottom of the phone). Better yet - anyone know how to (code
...-
03-02-2008, 02:39 PM #1
How to access the top ear speaker
Has anyone seen a 3rd party native app access the top speaker (not the player speaker at the bottom of the phone).
Better yet - anyone know how to (code wise?).
THANKS!
-mcSend iPhone System Log: Via any Intelliborn App -> Click Help / FAQs/ Support -> Scroll to bottom and click on red text at bottom.
MyWi 4.0 - WiFi + USB Tethering on 3.x/4.x/5.x + Simple WiFi Router - Connect Laptops, Touches, + more!
My3G - Facetime over 3G plus HiDef YouTube and more! Trick your iPhone into thinking it's on WiFi
IntelliScreenX - iOS 5 Notification Center the way Apple wished it was.
Tlert - View and Reply to SMS message within any app. Get rid of the ugly default alert messages!
-
03-02-2008, 09:05 PM #2
To get sound out of the receiver, try this:
Code:-(void) switchToReceiver { NSString* zError; AVController* zAVController=[AVController avController]; [zAVController activate: nil]; [zAVController setAttribute:@"PhoneCall" forKey:@"AVController_AudioCategoryAttribute" error:&zError ]; }
-
The Following User Says Thank You to JLA For This Useful Post:
skeels (03-03-2008)
-
03-03-2008, 09:03 AM #3
JLA - Thanks a ton! Worked great.
Send iPhone System Log: Via any Intelliborn App -> Click Help / FAQs/ Support -> Scroll to bottom and click on red text at bottom.
MyWi 4.0 - WiFi + USB Tethering on 3.x/4.x/5.x + Simple WiFi Router - Connect Laptops, Touches, + more!
My3G - Facetime over 3G plus HiDef YouTube and more! Trick your iPhone into thinking it's on WiFi
IntelliScreenX - iOS 5 Notification Center the way Apple wished it was.
Tlert - View and Reply to SMS message within any app. Get rid of the ugly default alert messages!
-
03-03-2008, 04:01 PM #4
i don't get... where did you put the code in?
-
03-03-2008, 04:56 PM #5
Anywhere you want...it can be a class method, so I guess you can change that - to a +.
Calling it will switch to the audio to the receiver until something switches it back.
-
04-14-2009, 10:19 AM #6
When I add the code to my method I get:
error: 'AVController' undeclared (first use in this function)
error: 'zAVController' undeclared (first use in this function)
Do I need an additional framework for this? A have AVFoundation imported and I am successfully playing sounds using AVAudioPlayer. I just want to play the sound through the ear speaker.
Thanks!
-
04-14-2009, 10:41 PM #7
-
02-28-2013, 05:08 PM #8
iEarMusik available through the AppStore allows you to do just that - https://itunes.apple.com/us/app/iear...543335277?mt=8




LinkBack URL
About LinkBacks
Reply With Quote
