Jump to content


Photo

Skype speaker fix

* * * * * 2 votes

  • Please log in to reply
46 replies to this topic

#1
Inopia

Inopia

    Newbie

  • Members
  • Pip
  • 11 posts
  • Devices:ZTE Blade
A lot of people were complaining about the Skype app sending sound to the loudspeaker. The Skype programmers were having the same problem that is described here. Basically they called AudioManager::setSpeakerphoneOn(false), but this fails (silently, and only on some devices) if you don't first set AudioManager::setMode(MODE_IN_CALL). Another example of random Android API horseshit.

Anyway, I did a quick baksmali/smali patch that seems to solve the problem, but I'm not sure if it breaks other functionality. Anyone care to test if it works for them?

http://www.multiupload.com/G2GU9CVUFJ

ps: this is completely untested, so if it breaks, destroys your phone, breaks into your house and steals your food, I'm not responsible
pps: this routes all audio to the internal speaker, including the ringing sound when someone is calling you!
ppps: I've submitted a bug report to Skype including information on how to fix it, so I'll just wait for them to sort it out the correct way.

Edited by Inopia, 08 February 2011 - 03:03 PM.

  • 0

#2
90180360

90180360

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 261 posts
  • Devices:N/A
  • Twitter:@N/A
Success! :P

(JJ9 on Swiss Blade)

Great work!! Let's hope Skype cares and adds this to the official release...

  • 0
.

#3
Shad555

Shad555

    Newbie

  • Members
  • Pip
  • 10 posts
  • Devices:Orange SF (ZTE Blade)
So far so good! Excellent work! :P

Would love to see this fix implemented officially by Skype in future releases.

  • 0

#4
oh!dougal

oh!dougal

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,022 posts
  • Location:England
  • Devices:DX2 FroYo San Francisco
Thank you! :P

Now, if you are still looking for challenges ... there's another popular question here - why can't ZTE's FMRadio play through anything other than the headset? (sure it needs the wire for its antenna, but it's sometimes nice to be able to play out through the speaker...)

  • 0

#5
Inopia

Inopia

    Newbie

  • Members
  • Pip
  • 11 posts
  • Devices:ZTE Blade
Hmm, it seems a bit flaky for me. Also, I think I've routed the ringer sound to the internal speaker as well :P

  • 0

#6
oh!dougal

oh!dougal

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,022 posts
  • Location:England
  • Devices:DX2 FroYo San Francisco

... I think I've routed the ringer sound to the internal speaker as well :P


Or rather, Skype have routed the ringtone to the same place as the call audio ... which doesn't seem terribly clever.

Surely there ought to be a "ring the phone" API call, which would do what a normal incoming call would do ... but likely Skype is doing everything as though it were playing 'Media' ...

Edited by oh!dougal, 08 February 2011 - 03:27 PM.

  • 0

#7
macrules

macrules

    Newbie

  • Members
  • Pip
  • 16 posts
  • Devices:HTC Desire

A lot of people were complaining about the Skype app sending sound to the loudspeaker. The Skype programmers were having the same problem that is described here. Basically they called AudioManager::setSpeakerphoneOn(false), but this fails (silently, and only on some devices) if you don't first set AudioManager::setMode(MODE_IN_CALL). Another example of random Android API horseshit.

Anyway, I did a quick baksmali/smali patch that seems to solve the problem, but I'm not sure if it breaks other functionality. Anyone care to test if it works for them?

http://www.multiupload.com/G2GU9CVUFJ

ps: this is completely untested, so if it breaks, destroys your phone, breaks into your house and steals your food, I'm not responsible
pps: this routes all audio to the internal speaker, including the ringing sound when someone is calling you!
ppps: I've submitted a bug report to Skype including information on how to fix it, so I'll just wait for them to sort it out the correct way.


Thank you so much for posting! Will try it for mom :P

  • 0

#8
Nitsson

Nitsson

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:Orange SF, Galaxy S2
Sounds good, but just so that I'm sure I understand the routing to the internal speaker you've done affects only the Skype app? Guess I need to delete the Marketplace-installed app, and manually install this.

Much appreciated.

  • 0

#9
hood

hood

    Newbie

  • Members
  • Pip
  • 31 posts
  • Gender:Male
OMG a lot of thanx 2 U! I wrote 2 Skype but they don't care about.

  • 0

#10
jim35

jim35

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:ZTE Blade

A lot of people were complaining about the Skype app sending sound to the loudspeaker. The Skype programmers were having the same problem that is described here. Basically they called AudioManager::setSpeakerphoneOn(false), but this fails (silently, and only on some devices) if you don't first set AudioManager::setMode(MODE_IN_CALL). Another example of random Android API horseshit.

Anyway, I did a quick baksmali/smali patch that seems to solve the problem, but I'm not sure if it breaks other functionality. Anyone care to test if it works for them?

http://www.multiupload.com/G2GU9CVUFJ

ps: this is completely untested, so if it breaks, destroys your phone, breaks into your house and steals your food, I'm not responsible
pps: this routes all audio to the internal speaker, including the ringing sound when someone is calling you!
ppps: I've submitted a bug report to Skype including information on how to fix it, so I'll just wait for them to sort it out the correct way.


Hi,

Is this routes ringing sound to the internal speaker, only if skype is running, and as I exit from skype, everything goes back to normal, OR is this overwrites the main settings too?

Thnx
Jim

Edited by jim35, 03 March 2011 - 03:26 PM.

  • 0

#11
w_shaolei

w_shaolei

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:ZTE Blade
thank you very much, it works well.

  • 0

#12
saxen08

saxen08

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:ZTE Blade
Ok i have tested this fix and this is what happens

If i make a call on skype all the sounds will be routed to the earpiece even after the call
but everything will be rerouted to normal if you recieve a regular call after the skype call or
making a normal call to someone.

An easy solution to this would be a shortcut on the launcher that resets the soundsettings somehow (The same as if you start a regular call)
and you have to press that button everytime you have been in a skype call. Everything will then be routed
to the right speaker (You will even get the skype incoming call signal from the loudspeaker)

Any bright solutions of this? Right now i make a random call and disconnect directly when started calling and this
seem to reset the soundsettings.

Or maybe its possible to decompile again and put a line for this too in the skypecode?

  • 0

#13
DannyDanny

DannyDanny

    Regular

  • Members
  • PipPip
  • 137 posts
Thank you for a great fix.

It does use the ear speaker and it finally works like a phone. (screen doesnt turn off? arr just lower it before I make a call)
I can live with this until Skype releases a fix. (But I dont think they will)

The problem with every sound routed to the ear speaker is an easy fix as saxen08 mentioned that I can just make a fake test call to any random number
and hang up. (and its back to normal)

I dont know if this force sound routing thing is safe, but I guess there isnt a reason why it shoudnt be safe.

Great work

  • 0

#14
DannyDanny

DannyDanny

    Regular

  • Members
  • PipPip
  • 137 posts
Skype released a new update today but it still does not solve the exterior speaker issue.

I suggest you stick with this modified skype and wait until it can actually change.

This Skype is great. You can ACTUALLY use ear / exterior speaker button to function

and the screen can turn off.


Just remember to make a fake call to any number and hangup when you dont need skype :)

  • 0

#15
Magnets

Magnets

    Enthusiast

  • Members
  • PipPipPip
  • 227 posts
"Security update"
That'll be for the db permissions exploit
http://www.androidpo...and-a-lot-more/

btw, what's with all these "skimlinks"? every time anyone says Sykpe it auto places a link, I hope modaco isn't implementing those annoying keyword link parsers.

  • 0

#16
The Soup Thief

The Soup Thief

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,047 posts
  • Gender:Male
  • Location:Dublin
  • Devices:Nexus 5 (N4 etc retired)
  • Twitter:@TheSoupThief

"Security update"
That'll be for the db permissions exploit
http://www.androidpo...and-a-lot-more/

btw, what's with all these "skimlinks"? every time anyone says Sykpe it auto places a link, I hope modaco isn't implementing those annoying keyword link parsers.

I think they are - any chance to monetise those punters' geekery eh?
Let's try a few...
Skype
Google
Ebay
Microsoft
Samsung
Apple
Comet
B&Q
MFI
Boots
Poundland
Ryanair

edit - of those, only skyp* and eb*y signed up from the looks of it

Edited by The Soup Thief, 20 April 2011 - 03:35 PM.

  • 0

#17
Maz2011

Maz2011

    Regular

  • Members
  • PipPip
  • 54 posts
It seems that this problem is actually an Android/Blade issue and has nothing to do with Skype as such. It also affects nearly all SIP type programmes.

Cyanogen have incorporated a fix that works, it seems, in the N41 build.

  • 0

#18
mouton

mouton

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:orange san francisco
  • Twitter:@mouton
Maybe the best way is to write an application which can switch between the internal and external speaker.
I saw similar applications in some non-android samsung phones before. Iphone can also do this freely.

  • 0

#19
npgall

npgall

    Newbie

  • Members
  • Pip
  • 4 posts
  • Devices:Desire HD, ZTE Blade
Uploaded a new patched skype here - https://jira.skype.com/browse/JSA-81 - this routes only the in-call audio to the earpiece, so the ringtone etc. should continue to work. Speakerphone works too. Same disclaimer applies - works for me on my ZTE Blade (Orange San Francisco) but use at your own risk.

  • 0

#20
Inopia

Inopia

    Newbie

  • Members
  • Pip
  • 11 posts
  • Devices:ZTE Blade
Hats off to you sir!

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users