[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sound with IDL... HELP!
- Subject: Re: Sound with IDL... HELP!
- From: "Dick Jackson" <dick(at)d-jackson.com>
- Date: Thu, 28 Jun 2001 18:13:20 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: Shaw Communications
- References: <3B39ED36.DD579CF2@planet-interkom.de>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:25548
"Alex Schuster" <Wonko@planet-interkom.de> wrote in message
> Okay, okay. I'm calm. Everything's just fine. I'm sure, someone will
> tell me that I don't have a BIG, BIG problem.
> Because, hey, it's 2001, and of course it should be no problem to play
> .wav files from IDL, right? Right.
David's absolutely right about IDL 5.4 and Spawn, but if all you need is to
get a .wav file sound played from the PC, you might want to try the
excellent idl_tools utilities by Randall Frank. One of the many marvels in
there is a sound player. It's available at:
Then, once you've dropped idl_tools.dll and idl_tools.dlm into your IDL
\bin\bin.x86 directory, all you need to do is:
wav = Read_WAV('c:\winnt\media\chimes.wav', rate)
handle = Snd_Play(wav, rate)
(handle is not anything you need afterward, ignore it)
From what I can tell, Read_WAV came in IDL 5.3, so this may be possible
without the 5.4 upgrade, and you may prefer to have it all handled from
Dick Jackson / email@example.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392