The trap solution is better in fact. But since the only device that has sound and no feature for it is Tungsten T, it was a simple solution. For the OS version, I can only tell for Palm Devices. On 5.1+, the feature is correctly set.
Nicolas "Carsten" <[EMAIL PROTECTED]> wrote in message news:113449@palm-dev-forum... > > 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/
