How to play *.WAV files 
Author Message
 How to play *.WAV files

Normally pointing WAV files, like <href="*.wav">,
some application appear on screen to play them.
But I don't want to see such an application on screen
just want the sounds. Is there anyway to make it possible?
Any information helpful thanks.
--

----------------------------------
  (Osamu Terao)

URL: http://www.*-*-*.com/ ~terasyu/
-----------------------------------



Wed, 18 Jul 2001 03:00:00 GMT  
 How to play *.WAV files
I wrote a small ActiveX control to play a WAV file.
If you are interested, I will send you the ocx file in advance.
The whole beef "including the source" will be released soon
within my WSH book (see below).

G. Born

Checkout this page for WSH samples (in the hot zone)
http://ourworld.compuserve.com/homepages/Guenter_Born

Check out:
this site for my upcoming WSH book:
www.Wrox.com

The title "Inside Windows Scripting Host" is available now from
MS Press Germany.


Quote:
>Normally pointing WAV files, like <href="*.wav">,
>some application appear on screen to play them.
>But I don't want to see such an application on screen
>just want the sounds. Is there anyway to make it possible?
>Any information helpful thanks.
>--

>----------------------------------
>  (Osamu Terao)

>URL: http://www.ilc.or.jp/~terasyu/
>-----------------------------------



Wed, 18 Jul 2001 03:00:00 GMT  
 How to play *.WAV files
If your're talking about an HTML page

<BGSOUND
BALANCE=string
CLASS=string
ID=string
LANG=string
LOOP=string
SRC=string
TITLE=string
VOLUME=string

The BGSOUND tag allows you to create pages with background sounds or
"soundtracks."

If your talking about from VBScript under WSH, try this (on Win98 anyway):

set s = createobject("wscript.shell")
s.run "C:\WINDOWS\rundll32.exe C:\WINDOWS\SYSTEM\amovie.ocx,RunDll /play
/close c:\windows\media\themic~1.wav",0,false

 The s.run line is all one line (it wraps in the message).  The ...,0,false
runs it hidden without waiting for it to finish.

This is stolen right from the Open command for a WAV file...

Folder propertirs, File Types, WAV file then Edit and edit the open command

--
Mike Harris

|Normally pointing WAV files, like <href="*.wav">,
|some application appear on screen to play them.
|But I don't want to see such an application on screen
|just want the sounds. Is there anyway to make it possible?
|Any information helpful thanks.
|--
|
|----------------------------------
|  (Osamu Terao)

|URL: http://www.ilc.or.jp/~terasyu/
|-----------------------------------
|
|



Fri, 20 Jul 2001 03:00:00 GMT  
 How to play *.WAV files
This also works...

set s = createobject("wscript.shell")
s.run "mplayer.exe /play /close C:\windows\media\The Microsoft Sound.wav",0

--
Mike Harris

|Normally pointing WAV files, like <href="*.wav">,
|some application appear on screen to play them.
|But I don't want to see such an application on screen
|just want the sounds. Is there anyway to make it possible?
|Any information helpful thanks.
|--
|
|----------------------------------
|  (Osamu Terao)

|URL: http://www.ilc.or.jp/~terasyu/
|-----------------------------------
|
|



Fri, 20 Jul 2001 03:00:00 GMT  
 How to play *.WAV files
Just as you told below;

 THEY REALLY WORKS,!
  thank a lot !!

Quote:

> This also works...

> set s = createobject("wscript.shell")
> s.run "mplayer.exe /play /close C:\windows\media\The Microsoft Sound.wav",0

> --
> Mike Harris

----------------------------------
  (Osamu Terao)

URL: http://www.ilc.or.jp/~terasyu/
-----------------------------------


Sat, 21 Jul 2001 03:00:00 GMT  
 How to play *.WAV files
One caution... The Media Player (mplayer.exe) is probably an optional
accessories component so if you plan to use this in a script that runs other
than on your own box, you can't necessarily be sure the mplayer is
installed.  The other technicque could be made dynamic by reading the
registry to find the command syntax to play a wav file.

For example, on my NT box:

HKCR\.wav\

has a default value of ===> SoundRec

HKCR\SoundRec\shell\play\command\

has a default value of ===> C:\WINNT\System32\rundll32.exe
C:\WINNT\System32\amovie.ocx,RunDll /play /close %1

You _could_ read the above registry keys and replace the %1 with the fully
qualified path to the wav file you want to play.  I discovered that
path/file names with embedded spaces _don't_ need to be enclosed in quotes.
Apparently, everything that follows the switches is interpreted as a
complete file name.

Quote:

>Just as you told below;

> THEY REALLY WORKS,!
>  thank a lot !!


>> This also works...

>> set s = createobject("wscript.shell")
>> s.run "mplayer.exe /play /close C:\windows\media\The Microsoft
Sound.wav",0

>> --
>> Mike Harris

>----------------------------------
>  (Osamu Terao)

>URL: http://www.ilc.or.jp/~terasyu/
>-----------------------------------



Sat, 21 Jul 2001 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Need Help Playing WAV File

2. Best way to play wav-files with WSH

3. Delaying in Playing WAV Files with Windows Media Player 9

4. .vbs file to play a .wav if file size does not equal 0

5. Playing a .wav File from a .vbs File

6. Sound -> howto play wav files ?

7. Playing a WAV file in VBscript

8. Is it possible to Play and close a wav file using Soundrec32.exe

9. PLaying multiple .WAV files when page loads

10. Playing WAV files

11. Playing .wav file using EMBED tag object

12. Create a new .wav file from an existing .wav file based on the date

 

 
Powered by phpBB® Forum Software