Sorry for that. Here is a little function we use to check for the sound:

Boolean PrvIsTungstenT()
{
 Boolean result = false;
 UInt32 companyID, deviceID;

 FtrGet(sysFtrCreator, sysFtrNumOEMCompanyID, &companyID);
 FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &deviceID);
 if ((companyID == 'Palm') && (deviceID == 'Frg1'))
  result = true;

 return result;
}

Boolean HasSampledSound()
{
 UInt32 version = 0;
 Boolean hasSampledSound = false;

 // Check if the sound feature is set
 if( FtrGet( sysFileCSoundMgr, sndFtrIDVersion, &version ) == errNone ) {
  hasSampledSound = true;
 }

 // Check for Tungsten T
 if( PrvIsTungstenT() ) {
  hasSampledSound = true;
 }

Done:
 return hasSampledSound;
}

Nicolas

"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:113443@palm-dev-forum...
>
> At 18:35 2003-2-13 +0100, you wrote:
> >Ben Combee wrote:
> >
> > >
> > >
> > > Look at the Waves example in the Palm OS 5 SDK.  It uses
SysGetTrapAddress
> > > to see if the address for the sound manager functions matches the
> > > not-implemented trap address.
> > >
> > >
> >
> >Thanks for the tip!
> >
> >... but: the 'original' method described in the SDK (FtrGet ...) doesn't
work
> >?
>
> It would have worked, but Palm didn't implement the feature correctly on
> the Tungsten T, leaving us with this state of affairs.
>
> --
> Ben Combee <[EMAIL PROTECTED]>
> CodeWarrior for Palm OS technical lead
> Palm OS programming help @ www.palmoswerks.com
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to