Tom's Hardware > Forum > Audio > Audio Technology > Simple WAV player
Word :    Username :           
 

Archived from groups: rec.audio.tech,rec.audio.misc (More info?)

 

I need a simple WAV player to use in a batch file, something that will
take the command parameter and play it without loading a GUI.

For example:

playwav wavefile.wav

This program "playwav.3exe" would just play the WAV file
"wavefile.wav" without loading anything extra.

Sndrec32 that comes with Windows does not take command line parameters
and it loads a GUI, therefore it is not what I am looking for.

If there is a module I can call from a C program, I can use that.


--

Map of the Vast Right Wing Conspiracy
http://home.houston.rr.com/rkba/vrwc.html

"The possession of arms is the distinction
between a free man and a slave."
-- Andrew Fletcher, Discourse on Government (1695)

Sponsored Links
Register or log in to remove.

Archived from groups: rec.audio.tech,rec.audio.misc (More info?)

 

Bob wrote:
>
> I need a simple WAV player to use in a batch file, something that will
> take the command parameter and play it without loading a GUI.
>
> For example:
>
> playwav wavefile.wav
>
> This program "playwav.3exe" would just play the WAV file
> "wavefile.wav" without loading anything extra.
>
> Sndrec32 that comes with Windows does not take command line parameters
> and it loads a GUI, therefore it is not what I am looking for.
>
> If there is a module I can call from a C program, I can use that.

mplayer.exe /play /close $FILENAME


--
Ron Hardin
rhhardin@mindspring.com

On the internet, nobody knows you're a jerk.

Reply to Anonymous
- 0 +

Archived from groups: rec.audio.tech,rec.audio.misc (More info?)

 

On Mon, 27 Jun 2005 16:19:57 GMT, Ron Hardin <rhhardin@mindspring.com>
wrote:

>mplayer.exe /play /close $FILENAME

I think you mean "mplay32.exe". Or maybe "wmplayer.exe"

Unfortunately "mplay32" loads the GUI - but only temporarily.
"wmplayer" loads the GUI but does not unload it.

It looks like "mplay32" will have to do until I find something better.

Thanks for the assistance.

--

Map of the Vast Right Wing Conspiracy
http://home.houston.rr.com/rkba/vrwc.html

"The possession of arms is the distinction
between a free man and a slave."
-- Andrew Fletcher, Discourse on Government (1695)

Reply to Bob

Archived from groups: rec.audio.tech,rec.audio.misc (More info?)

 

Bob wrote:
>
> On Mon, 27 Jun 2005 16:19:57 GMT, Ron Hardin <rhhardin@mindspring.com>
> wrote:
>
> >mplayer.exe /play /close $FILENAME
>
> I think you mean "mplay32.exe". Or maybe "wmplayer.exe"
>
> Unfortunately "mplay32" loads the GUI - but only temporarily.
> "wmplayer" loads the GUI but does not unload it.
>
> It looks like "mplay32" will have to do until I find something better.
>
> Thanks for the assistance.

it's mplayer on my (win95) system

[C:/WINDOWS] ls -l mplayer.exe
-rwxrwxrwa 1 0 0 147968 Jul 11 1995 mplayer.exe
[C:/WINDOWS]

--
Ron Hardin
rhhardin@mindspring.com

On the internet, nobody knows you're a jerk.

Reply to Anonymous

Archived from groups: rec.audio.tech,rec.audio.misc (More info?)

 

I got 6050 hits from Google when I searched on:

command-line wav-player

Seems quite probable that a solution can be found on the
first page of hits. Perhaps even the very first one!

Reply to Anonymous
- 0 +

Archived from groups: rec.audio.tech,rec.audio.misc (More info?)

 

On Mon, 27 Jun 2005 22:18:59 GMT, Ron Hardin <rhhardin@mindspring.com>
wrote:

>> I think you mean "mplay32.exe". Or maybe "wmplayer.exe"

>it's mplayer on my (win95) system

Just like Microsoft to change the name all the time.

I have Win98 somewhere around here - I suppose I could extract mplayer
if you think it would work better than mplay32. The only thing about
mplay32 is that it spawns the GUI temporarily. No big deal, it goes
away fast enough, but if I could find one that suppressed the GUI it
would be better.


--

Map of the Vast Right Wing Conspiracy
http://home.houston.rr.com/rkba/vrwc.html

"The possession of arms is the distinction
between a free man and a slave."
-- Andrew Fletcher, Discourse on Government (1695)

Reply to Bob
- 0 +

Archived from groups: rec.audio.tech,rec.audio.misc (More info?)

 

On Mon, 27 Jun 2005 22:15:04 -0700, "Richard Crowley"
<rcrowley7@xprt.net> wrote:

>I got 6050 hits from Google when I searched on:
>
> command-line wav-player
>
>Seems quite probable that a solution can be found on the
>first page of hits. Perhaps even the very first one!

I used a similar keyphrase and also got a kazillion hits. I went thru
a couple pages of them but they all were far too fully-featured for my
needs. There was one that claimed to be barebones, but alas it was for
UNIX.

I always check Google before inquiring in a Usenet forum - it's simply
faster and I get to see a much wider range of options than afforded in
Usenet replies. But in this case I could not find anything that suited
my needs, so I wrote a couple forums and the very first post had the
solution I sought.


--

Map of the Vast Right Wing Conspiracy
http://home.houston.rr.com/rkba/vrwc.html

"The possession of arms is the distinction
between a free man and a slave."
-- Andrew Fletcher, Discourse on Government (1695)

Reply to Bob

Archived from groups: rec.audio.tech,rec.audio.misc (More info?)

 

Is Linux out of the question?
It does just exactly what you want! (sort of...)

http://www.akrobiz.com/laserboy/

~James. :o)



"Bob" <spam@uce.gov> wrote in message
news:42bffba7.88536531@news-server.houston.rr.com...
> I need a simple WAV player to use in a batch file, something that will
> take the command parameter and play it without loading a GUI.
>
> For example:
>
> playwav wavefile.wav
>
> This program "playwav.3exe" would just play the WAV file
> "wavefile.wav" without loading anything extra.
>
> Sndrec32 that comes with Windows does not take command line parameters
> and it loads a GUI, therefore it is not what I am looking for.
>
> If there is a module I can call from a C program, I can use that.
>
>
> --
>
> Map of the Vast Right Wing Conspiracy
> http://home.houston.rr.com/rkba/vrwc.html
>
> "The possession of arms is the distinction
> between a free man and a slave."
> -- Andrew Fletcher, Discourse on Government (1695)

Reply to Anonymous
Tom's Hardware > Forum > Audio > Audio Technology > Simple WAV player
Go to:

There are 669 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them
  • 01:00 TH won the Freshman badge
  • 01:00 exploresalot won the Freshman badge
  • 01:00 mlg779 won the Freshman badge
  • 05:31 Mysteic won the Sophmore badge
  • 01:00 listerd won the Freshman badge
  • 01:00 stephen98146 won the Uniformed badge
  • 01:00 LANKO1982 won the Uniformed badge
  • 01:00 sitec won the Uniformed badge
  • 01:00 iiraymoii won the Freshman badge
  • 03:27 cjl won the CPUs badge