12 Feb, 2008
How to play sound on the PocketPC using Win32
Posted by: Anca Alimanescu In: Mobile Dev
There are some functions that allow you to play sounds on a PPC:
* MessageBeep function is useful when you need to play a system alert.
MessageBeep(0xFFFFFFFF);
* PlaySound function should be used to play a .wav file from any source (file, resources and memory.
PlaySound(_T(”\\Windows\\empty.wav”), NULL, SND_ASYNC | SND_FILENAME);
* waveOut… functions are useful to play custom sound that is generated by your program. These functions are often used in games development.
