Re: Win32Lib: PlaySound parameters

new topic     » goto parent     » topic index » view thread      » older message » newer message

----- 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu