Re: playing .wav file

Louis-Eric Simard <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Hello Brigitte,

sndPlaySound('Filename', SND_ASYNC or SND_NODEFAULT);

should do the trick; this set of flags will return immediately (rather than 
waiting for the sound to finish playing) and will not play a default sound 
if the file is not found; if you wish to wait, go with SND_SYNC.

Cheers,

Louis-Eric Simard
Founder
DelphiMontreal User Group




At 08:01 PM 02/08/2003 +0200, Brigitte Spatz wrote:
>What command(s) do I need to play a specified .wav file on some event?
>
>TIA.
>
>Brigitte
>
>
>[Non-text portions of this message have been removed]
>
>
>
>CodeCoffer - new Delphi code protection Tool!
>http://www.delphicollection.com/public/CodeCoffer.htm
>---------------------------------------------------------------
>Unsubscribe:[email protected]
>List owner:[email protected]
>---------------------------------------------------------------
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.