Hi there,

I am using SndDoCmd for the first time. It works ok but seems to always
return error code 1. (Prints message SndDoCmd error 1'")

Is this a bug/feature, or am I (most likely) doing something wrong thta I
can't spot?  (Code follows)

Robert Crago
Revelation Computing Pty Limited
PO Box 459, ASPLEY
Brisbane, Australia 4034

=============Code Snippet =================
/*
 * Play appropriate sound for operator
 */
void playOperatorSound(
 char op)
{
 SndCommandType sndCmd;
 Err err;

 sndCmd.cmd = sndCmdFreqDurationAmp;
 sndCmd.param1 = 400;
 sndCmd.param2 = 25;
 sndCmd.param3 = sndMaxAmp; //PrefGetPreference(prefSysSoundVolume) gives
err=64
 err = SndDoCmd(NULL, &sndCmd, 0);

 if (err != 0) {
  StrPrintF(g.tempStr, "SndDoCmd error %u", err);
  ErrFatalDisplayIf(true, g.tempStr);
 }

}


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

Reply via email to