System beep in Windows CE

I want to issue a โ€œbeepโ€ from the motherboard of a system running Windows CE. Most of the information / code I came across uses MessageBeep , which, as far as I can tell, is trying to use a sound card as opposed to the hardware on the motherboard.

I use C ++, but can you C # .NET if necessary. I am running Windows CE 6 on a small PC, and not on a handheld device.

+4
source share
2 answers

Have you tried typing a character?

 cout << '\a'; 
+3
source

If the OS sound driver is not connected to this device (and it looks like it is not the way it comes from the sound card device), you will have to go directly to it with the ASM code. You may even have to put it in the driver (user mode should work fine) to gain access to the hardware.

Assuming you are on X86 (I have never seen an ARM device with a speaker on the motherboard), then the code is no different from the code used by someone running some other OS (since you are heading directly to the hardware). A quick search for "x86 beep in asm" showed a couple of promises.

+2
source

Source: https://habr.com/ru/post/1338441/


All Articles