| NEWS | | |  | | FORUMS | | |  | | FREEWARE | | |  | | ABOUT US | | |  | |
07-30-2008, 12:40 AM
|
#1 | | Registered User
Join Date: Mar 2003 Location: Waco TX
Posts: 4,440
| TreoSpeaker DAs http://www.1src.com/freeware/fileinfo.php?id=1865
This includes two DAs, FrontSpeaker and RearSpeaker, which switch non-phone audio to the Treo's front speaker or to the rear speaker / headphone, respectively. Why would you want to do that? Well, maybe you forgot your headphones, and you want to listen to an audio book in a crowded area. Then you can listen through the front speaker, looking and sounding as if you were having a phone conversation.
__________________
Alex Pruss
For my shareware (FontSmoother, myKbd, mySkin, Accenter, FastLaunch and AtomClock) and freeware PalmOS software, go here: http://pruss.mobi |
| |
07-30-2008, 03:17 AM
|
#2 | | Alleged User
Join Date: Aug 2005 Location: South Africa
Posts: 90
| Thanks Alex - this is very handy! |
| |
07-30-2008, 03:22 AM
|
#3 | | Registered User
Join Date: Mar 2008 Location: Paris (FR)
Posts: 87
| I will try...
I dreamt of it, Alex did it !
Thanks a lot, Alex ! Really !  |
| |
07-30-2008, 05:49 PM
|
#4 | | Registered User
Join Date: Mar 2003 Location: Waco TX
Posts: 4,440
| Quote: | Originally Posted by Chastreo Very Nice and useful.
Another use, is it's an easy way to get APT to put the Treo into a near mute mode.
I've noticed it makes the Phone Ring Tone quiet, as it also then comes out of the front speaker.
- So that could be a useful way of making the ring tone quiet for a while.
- However it might also mean missing a phone call. I've tried to find a way for APT to trigger RearSpeaker on an incoming call, but have failed so far  |
This is interesting. Is this with the stock ring-tones or with mp3 ring-tones?
__________________
Alex Pruss
For my shareware (FontSmoother, myKbd, mySkin, Accenter, FastLaunch and AtomClock) and freeware PalmOS software, go here: http://pruss.mobi |
| |
07-30-2008, 05:51 PM
|
#5 | | Registered User
Join Date: Mar 2003 Location: Waco TX
Posts: 4,440
| Quote: | Originally Posted by FranckW I will try...
I dreamt of it, Alex did it !
Thanks a lot, Alex ! Really !  |
You're welcome. It was super-easy, apart from digging through header files. Here is the complete source code for FrontSpeaker: Code:
#include <PalmOS.h>
#undef appCreator
#include "68k/Hs.h"
#define RESID 1000
void DA( void )
{
UInt16 libRef;
if ( errNone == SysLibLoad( hsSoundLibTypeID, hsSoundLibCreatorID, &libRef ) ) {
if ( errNone == HsSndOpen( libRef ) ) {
HsSndSwitchSetPort( libRef, hsSndSwitchID_InHostPlay, hsSndPortID_OutReceiver, hsSndPortClass_Real );
HsSndClose( libRef );
}
SysLibRemove( libRef );
}
}
__________________
Alex Pruss
For my shareware (FontSmoother, myKbd, mySkin, Accenter, FastLaunch and AtomClock) and freeware PalmOS software, go here: http://pruss.mobi |
| |
07-31-2008, 12:27 AM
|
#6 | | Registered User
Join Date: Mar 2003 Location: Waco TX
Posts: 4,440
| I added LoudToggle to the TreoSpeakers package. LoudToggle is a DA that toggles an extra-loud mode when playing app sounds out of the rear speaker.
__________________
Alex Pruss
For my shareware (FontSmoother, myKbd, mySkin, Accenter, FastLaunch and AtomClock) and freeware PalmOS software, go here: http://pruss.mobi |
| | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 05:08 PM. | |