Click to See Complete Forum and Search --> : Need Beep() function on Windows CE


mshipman
June 12th, 2002, 11:45 AM
I am developing an application on a Compaq iPaq Pocket PC that will serve as the user interface for a scientific instrument.

I want to use sound to provide feedback to the user varying the pitch based on the data observed. Alas, the Beep(dwFreq, dwDuration) function is not supported under Windows CE. All supported functions seem to be aimed at playing WAV files.

I can probably so what I want with PlaySound() or the Waveform Audio functions (waveOutOpen, waveOutSetPlaybackRate, etc.), but the Beep() functionality is what I want.

Has anyone implemented a Beep() function for Windows CE or a driver that supports this functionality?

Thanks,
M. Shipman

TonyCoupland
June 16th, 2002, 04:12 PM
Have you tried using the function MessageBeep ?

A simple beep can be implemented using MessageBeep( MB_OK ).

I know this works on the several devices I have.

Hope this helps.

Tone

mshipman
June 17th, 2002, 07:45 AM
Thanks for your reply, Tony.

However, MessageBeep() does not work for me.
I want to produce sound continuously, changing the pitch to indicate the level of an observed quantity.

Lacking a Beep() function, I have created a number of wav files, each containing a single tone. I am calling PlaySound() repeatedly with different wav files to generate various tones.

Cheers,
MikeS