Based only on the code you provided, you are using a pointer without having allocated any memory behind it. I'd have done (not tested, though):
SndCommand command; command.cmd = sndCmdFreqDurationAmp ; command.param1 = 440; command.param2 = 1000; command.param3 = sndMaxAmp; SndDoCmd (NULL,&command,TRUE); -----Message d'origine----- De : Rodolphe Bréjaude [mailto:[EMAIL PROTECTED] 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); -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/