Go Back   xda-developers > HTC Wizard: 8125, K-JAM, P3400, MDA > 8125, K-JAM, P3400, MDA General


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th January 2009, 06:59 PM
MarceloFB MarceloFB is offline
Junior Member
 
Join Date: Oct 2007
Posts: 28
Default New audio switch program for skype and others.

This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.

I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.

the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.



the configuration file (command.txt) is under this format:

1000
skype
fring
etc

the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.

the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).

Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!

It is manly intended for little expert users:), as it is still in "beta" fase, hehehe.

How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.

Do not launch two or more instances of the program at the same time, could really mess things up. -- se the forum (thanks tucahara)
To stop the program, u must use a process manager.

it would be good if someone could make a cab to install it. -- done see the forum (thanks tucahara)


this is still a beta, I intend to make ajustments as people give feedback.



Thanks,

hope u like.

-----first update---
now, an file called "audioswitch_error.txt" in the root directory will hold the error messages.

------------ List - Working ------------
wizard - I tested
P3301 or P3300 - I tested
att tilt - I tested
touch 3452 and 3450
touch dual
touch cruise
touch HD
Sony Ericsson Xperia X1
BenQ E72
Titan --> see the forum

------------ List - NOT working ------------
T-Mobile Diamond
HTC Touch by Sprint
Samsung SGH-i780


------------------------------------------------------------------------------------
check the new thread at:
http://forum.xda-developers.com/showthread.php?t=502361
new aproach to do the switch and now open source, even with an class that others can improve and put in other apps...

Some people complain about me not openning the source of the app, I have just made this way because there was proprietary code inside and I had no time to rewrite it without the proprietary code.
I have made the best I could, and now I had some time and rewrite the app in open source, to those who only complain about it, get the code and make it better instead of complaining!

Thanks for all that encourage me to continue the work and helped the development.

will retire this project for while...

thanks u all.
Attached Files
File Type: zip audioswitch.zip (38.7 KB, 3289 views)

Last edited by MarceloFB; 10th April 2009 at 12:54 AM..
Reply With Quote
Sponsored Links

  #2  
Old 11th January 2009, 04:31 PM
ejlmd ejlmd is offline
Member
 
Join Date: Jan 2009
Posts: 55
Default Audioswitch for Skype

On HTC Touch by Sprint (CDMA, also known as Vogue), audioswitch does switch the audio in the Skype 2.5 windows mobile PPC from external speaker to handset. Unfortunately, the microphone is then also disabled. I hope you'll be able to tweak your audioswitch to resolve this.

Thank you so much for developing this wonderful applet. I'm sure you will have the gratitude of many frustrated Skype windows mobile users.
Reply With Quote

  #3  
Old 11th January 2009, 05:56 PM
MarceloFB MarceloFB is offline
Junior Member
 
Join Date: Oct 2007
Posts: 28
Default

What really happens is that when the sound output is switched in some phones, the microphone gain changes too. This happens because the phone thinks it is a "normal call".
Most of the times the mic gain increases, but in your phone it must be decreasing. Try to figure out in registry where the mic gain controls are recorded and chage all of then to the same value. I had this issue with my P3301 and solved this way, but there is quite a time now and I do not remenber where are the reg keys to change, but I have found the information here in the forum.

I will try to figure out for other "hack" to solve this issue... thanks for reply.
Reply With Quote

  #4  
Old 14th January 2009, 10:45 PM
cheyenne cheyenne is offline
Member
 
Join Date: Sep 2006
Posts: 69
Default

doesn't work at T-Mobile Compact IV (aka Diamond)
Sound went to loudspeaker....
PS: fring last version working fine with sound at mine phone (without any additional programms). Sound is going to correct destination automatically
__________________
______________________
T-Mobile MDA Compact V
Reply With Quote

  #5  
Old 15th January 2009, 01:53 AM
ejlmd ejlmd is offline
Member
 
Join Date: Jan 2009
Posts: 55
Default

I just tried the latest version of Fring, which automatically switches audio to earpiece when call is connected.

The same issue occurs with the new Fring as I described above with your audioswitch program: I can hear audio through earpiece, but microphone doesn't work (or is inaudible).

I couldn't find a tweak or registry hack to correct this. Any help would be greatly appreciated.
Reply With Quote

  #6  
Old 15th January 2009, 03:27 AM
JKingDev JKingDev is offline
Senior Member
 
Join Date: Nov 2006
Posts: 592
Default

Quote:
Originally Posted by MarceloFB View Post
This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.

I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.

the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.

the configuration file (command.txt) is under this format:

1000
skype
fring
etc

the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.

the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).

Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!

It is manly intended for little expert users, as it is still in "beta" fase, hehehe.

How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.

it would be good if someone could make a cab to install it.


this is still a beta, I intend to make ajustments as people give feedback.


If someone like this program and wants to make an donation...
https://www.paypal.com/cgi-bin/websc...if%3aNonHosted


Thanks,

hope u like.
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.

Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.

Great program though. Works beautifully.
__________________
Palm IIIe > Palm IIIxe > Palm Zire71 + Samsung a660 > Apache > Mogul > Kaiser > Sony Ericsson Xperia X1
Carrier: AT&T
ROM: My own cooked 28205 ROM built with Ervius Visual Kitchen
__________________
Take control of the buttons on your Xperia X1

Last edited by JKingDev; 15th January 2009 at 04:59 AM..
Reply With Quote

  #7  
Old 15th January 2009, 04:27 AM
ottie3 ottie3 is offline
Junior Member
 
Join Date: Jan 2009
Posts: 1
Default

OOOH

If this program works on the new BenQ E72 I'm getting in a couple of days I'll certainly donate!

THANKYOUTHANKYOUTHANKYOU
Reply With Quote

  #8  
Old 15th January 2009, 10:58 AM
baal_zebub baal_zebub is offline
Senior Member
 
Join Date: Apr 2008
Posts: 114
Default

hello,

it does not work on hermes (tytn).

by the way "troca2" does work on hermes! - maybe you guys want to work together?
Reply With Quote

  #9  
Old 15th January 2009, 07:28 PM
MarceloFB MarceloFB is offline
Junior Member
 
Join Date: Oct 2007
Posts: 28
Default

Quote:
Originally Posted by baal_zebub View Post
hello,

it does not work on hermes (tytn).

by the way "troca2" does work on hermes! - maybe you guys want to work together?
hehhehe, I made troca2, I will see if the switch code is the same or if I have made some mistake...
are u sure you have put the program in the correct directory?? I will make some modifications to have an error feedback. So u can see if something is wrong...
Reply With Quote

  #10  
Old 15th January 2009, 07:36 PM
MarceloFB MarceloFB is offline
Junior Member
 
Join Date: Oct 2007
Posts: 28
Default

Quote:
Originally Posted by JKingDev View Post
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.

Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.

Great program though. Works beautifully.
It is a good idea to use hook, I have not think of it!
I use a proprietary code included in a lib at the company I work for to make the "switch" but it is not different of what u find here in the forum.
Maybe we can make an effort to re-make it with hooks...
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:49 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.