At 03:17 PM 10/31/2003, Monika Kauntz wrote:
Help!
I am trying to debug my program which uses the extended sound manager and I
call the check for trap numbers and it comes back saying that it does not
have the extended sampled sound.
Is there something I need to do to use the extended sound manager in the
simulator.

The Tungsten T doesn't correctly report its support of this. The FAQ on the pluggedin.palm.com site gives this code:


Q: How do I check if a device has sampled sound?
Use the following code:
Boolean PalmSGHasSampledSound()
{
        UInt32 version = 0;
        UInt32 checkPalm = 0;
        UInt32 checkTT = 0;
        Boolean hasSampledSound = false;

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


        // Check for Tungsten|T
        FtrGet(sysFtrCreator, sysFtrNumOEMCompanyID, &checkPalm);
        FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &checkTT);
        if( checkPalm == 'Palm' && checkTT == 'Frg1' ) {
                hasSampledSound = true;
        }

        return hasSampledSound;
}

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