This will look for the feature and if it doesnt find it revert to checking
for the tungsten T

Boolean IsSoundManagerAvailable(void)
{
 UInt32 version;
 Err result;

 UInt32 companyID;
 UInt32 deviceID;

 // check for sound manager feature
 result = FtrGet(sysFileCSoundMgr, sndFtrIDVersion, &version);
 if (result == errNone)
  return true;

 // check for Tungsten T
 FtrGet(sysFtrCreator, sysFtrNumOEMCompanyID, &companyID);
 FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &deviceID);
 if ((companyID == 'Palm') && (deviceID == 'Frg1'))
  return true;

 // failed
 return false;
}


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

Reply via email to