Thanks. I'll give it a try. However, when I try this on the Simulator the
result returned is 0. If I enable sound on the simulator, I am able to handle
sampled sound on the Zire 21. When I disable sound on the simulator, I lockup
as I do on the real device.
Anyone else care to comment on this?
Thanks,
Mike
--- Tom Frauenhofer <[EMAIL PROTECTED]> wrote:
> Here's the routine I used that worked (told me the Zire21 doesn't have
> sampled sound...) - used this to test the Zire 21 a few weeks ago - biggest
> difference is how we check for errors on the FtrGet - no hangs here...
>
> (This was taken from either a PalmSource or PalmOne site to include
> handling for Tungsten T - I don't claim authorship, merely creative reuse ;)
> )
>
> static Boolean IsStreamingSoundAvailable(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;
> }
>
>
>
> At 03:00 AM 11/7/2003, Mike McCollister <[EMAIL PROTECTED]> wrote:
> >Ben,
> >
> >Thanks. Now why does the Zire 21 return a true with this code?
> >
> >bSampledSound = false;
> >err = FtrGet(sysFileCSoundMgr, sndFtrIDVersion, &version)
> >if(err != ftrErrNoSuchFeature)
> > if(version == sndMgrVersionNum)
> > bSampleSound = true;
> >
> >Was it an oversite by palmOne? If so, what do I need to check for then?
> >
> >Thanks,
> >
> >Mike
> >
> >--- Ben Combee <[EMAIL PROTECTED]> wrote:
> > > At 12:21 PM 11/6/2003, Mike McCollister wrote:
> > > >Does the Zire 21 support sampled sound?
> > >
> > > Reports on this forum from a few weeks ago indicate that the Zire 21
> > > doesn't support sampled sound.
> > >
> > > --
> > > Ben Combee <[EMAIL PROTECTED]>
> > > CodeWarrior for Palm OS technical lead
> > > Palm OS programming help @ www.palmoswerks.com
> > >
> > >
>
> ----
> Tom Frauenhofer, [EMAIL PROTECTED]
> http://www.beret.com
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/support/forums/
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/