Thanks,
Yes I forget to allocae memory...
Sorry for this beginner mistake...
Bye

----- Original Message -----
From: "Agus Silas" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 6:03 PM
Subject: RE: play litte sound with Palm


> Since "command" is a pointer, shouldn't you allocate memory space before ?
>
> Why don't you do just like this
>
> SndCommandType sndCmd;
>
> sndCmd.cmd = sndCmdFreqDurationAmp;
> sndCmd.param1 = 440;
> sndCmd.param2 = 1000;
> sndCmd.param3 = sndMaxAmp;
>
> SndDoCmd ( 0, &sndCmd, true );
>
> This one works on my T|W
>
> Agus
>
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] la part de Rodolphe
> Br�jaude
> Envoy� : lundi 16 juin 2003 17:57
> � : Palm Developer Forum
> Objet : Re: play litte sound with Palm
>
> I tried this but I have no sound ??
> why ?
>
> SndCommandPtr command;
>
> command->cmd = sndCmdFreqDurationAmp ;
> command->param1 = 440;
> command->param2 = 1000;
> command->param3 = sndMaxAmp;
>
> SndDoCmd (NULL,command,TRUE);
>
>
>
> ----- Original Message -----
> From: "Chris Apers" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Monday, June 16, 2003 5:42 PM
> Subject: Re: play litte sound with Palm
>
>
> > Try SndDoCmd
> >
> >
> > ----- Original Message -----
> > From: "Rodolphe Br�jaude" <[EMAIL PROTECTED]>
> > To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> > Sent: Monday, June 16, 2003 5:41 PM
> > Subject: play litte sound with Palm
> >
> >
> > > Hello;
> > >
> > > How can I play a bepp at a special frequenci or just a beep on my palm
> > > in my application (C/C++) ?
> > >
> > > like BEEP(440);  -> play 44Hz
> > >
> > > thanks
> > >
> > > --
> > > For information on using the Palm Developer Forums, or to unsubscribe,
> > please see http://www.palmos.com/dev/support/forums/
> > >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/


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

Reply via email to