Nicolas Pabion wrote:

> 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
>



But how about other OS-5 devices than the T-T, that have the SoundStream
(sampled sound) Manager functions ?
(Sony?)

Ain't the trap-checking be the 100% correct solution ?
>From which OS-5.x is the   FtrGet(sysFileCSoundMgr, sndFtrIDVersion,
&version)   properly implemented ?


Best regards,
Carsten.



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

Reply via email to