--- [EMAIL PROTECTED] wrote:
> Can someone please show me an example source to playing
> a single note on the palm? I am fairly new and want to learn!
You've been posting questions to palm-dev since June of last year. By
now, you should have figured out how to get answers to simple questions
by reading the docs. However, since I'm just sitting here at my
computer wasting time, here's an example for you:
static void PlaySound( Int32 hz, UInt16 ms, UInt16 amp )
{
Err err;
SndCommandType sndcmd;
sndcmd.cmd = sndCmdFreqDurationAmp;
sndcmd.param1 = hz;
sndcmd.param2 = ms;
sndcmd.param3 = amp;
err = SndDoCmd( NULL, &sndcmd, 0 );
}
// play a D as loud as possible
PlaySound(587, 500, sndMaxAmp);
Now, read the Sound Manager chapter of the Reference to learn more.
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/