Re: playing .wav file

"Comboy" <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Hi brigitte,
why you don't use a mediplayer which is located in system tab?
with mediaplayer1 do
begin
filename:='c:\brigitte.wav';
open;
play;
end;

if you want to use playsound function do this:
uses mmsystem,
playsound(pchar('c:\brigitte.wav'),hinstance,snd_async or snd_memory 
or snd_resource);

I think my codes are right, sorry I'm not sure about them because I'm 
using a public computer.

Happy coding,

Comboy.


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