Re: Win32Lib: PlaySound parameters
- Posted by "Brian K. Broker" <bkb at CNW.COM> Nov 02, 1999
- 521 views
----- Original Message ----- From: Dan Moyer <DanMoyer at PRODIGY.NET> Sent: Monday, November 01, 1999 10:31 PM > Can you give me some more information about PlaySound & its parameters? The best place for info on the subject is MSDN (MS Developers' Network). Win32Lib defines 'PlaySound' as a procedure as opposed to a function (why is that? and what is the difference between 'PlaySound' and 'PlaySoundA' from Win32API.ew?) Anyways, check for more info on this function. Use Win32Lib's 'or_all' function for passing 'fdwSound'. i.e.) tmp = allocate_string(root_dir & MEDIA_DIR & wav_file) c_proc(xPlaySound, {tmp, NULL, or_all(SND_FILENAME, SND_ASYNC, SND_NOSTOP)}) Constant values can be found in Win32API.ew. You have an interesting idea that I will experiment with tomorrow. Let me know if you find a solution... -- Brian