DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: wav player without any gui  (Read 45,800 times)

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
DONE: wav player without any gui
« on: July 07, 2011, 10:25 PM »
Hi,

I'm desperately looking for a simple .wav player that doesn't have any gui at all.

It should have the following features:

- Can be invoked via a e.g. dos prompt (e.g. wavplayer.exe <file> [option])
option = /exit (quit the player after playing the file)
- Works under x86 _and_ x64 systems (WinXP - Win7)
- Portable, configuration files should not be needed

I've used microwav before I switched to Win 7 x64 which worked fine under any x86 environment but fails under x64.

Tia,
highend01

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #1 on: July 07, 2011, 11:04 PM »
I can do this but I don't have Windows 7 64-bit so I'll rely on you for the testing.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #2 on: July 07, 2011, 11:25 PM »
Give this a try:  Escape.zip  See this post below...

Extremely Simple Commandline Audio Player Extraordinaire

Usage:  Escape.exe "<file>" [/exit]

Yeah, I'm taking a small liberty with the extraordinaire part.  :P  Please let me know if this works for you.  I've tested it on Windows XP SP3 32-bit.


« Last Edit: July 08, 2011, 11:03 PM by skwire »

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: wav player without any gui
« Reply #3 on: July 08, 2011, 04:53 AM »
FWIW, gave it a try under wine (1.3) and it seems to work fine (both with and without /exit)  :Thmbsup:

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #4 on: July 08, 2011, 04:56 AM »
FWIW, gave it a try under wine (1.3) and it seems to work fine (both with and without /exit)  :Thmbsup:

Thanks, kind sir.  Was that using a 64-bit system?

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #5 on: July 08, 2011, 05:01 AM »
Also, to the original poster, is there any reason for the /exit switch?  I mean, it would make more sense to automatically close the app after playing a file but use a /keep switch to keep it running, no?  Otherwise, simply dropping wav files on the exe will lead to several hanging instances.  Your thoughts?
« Last Edit: July 08, 2011, 05:48 AM by skwire »

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: wav player without any gui
« Reply #6 on: July 08, 2011, 05:48 AM »
Quote
Also, to the original poster, is there any reason for the /quit switch?
I know I'm not the original poster, but other command-line audio players (like MPD or dbPowerAmp Renaissance) act as background media servers that are controlled via command line; e.g. you start it up then tell it what to do via typed-in commands, telling it what file to play, load a playlist, quit/restart, etc.
So a /exit switch would tell it to start up, play the file and exit without hanging out waiting for more instructions.
All children left unattended will be given a mocha and a puppy.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #7 on: July 08, 2011, 05:49 AM »
Well, this isn't a full-fledged audio player.  It simply plays a single wav file, optionally exits, and that's it.   :)  There are no playback controls, volume controls or otherwise.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #8 on: July 08, 2011, 05:54 AM »
Maybe I should name it something else so as not to give people the wrong idea?

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: wav player without any gui
« Reply #9 on: July 08, 2011, 06:15 AM »
Was that using a 64-bit system?
The wine test was with a 32-bit system.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #10 on: July 08, 2011, 06:17 AM »
The wine test was with a 32-bit system.

Cool, thanks.  Is anybody able to test this on a Windows 7 64-bit system?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: wav player without any gui
« Reply #11 on: July 08, 2011, 06:36 AM »
The wine test was with a 32-bit system.

Cool, thanks.  Is anybody able to test this on a Windows 7 64-bit system?

yup, i tried on Win 7 64-bit and it worked fine.. :up:

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #12 on: July 08, 2011, 06:38 AM »
Sweet.  :D  Thanks, lanux.

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
Re: wav player without any gui
« Reply #13 on: July 08, 2011, 06:47 AM »
Hi and sorry for the delay (it was time for sleep here in good old germany) ;)

Quote
Also, to the original poster, is there any reason for the /exit switch?  I mean, it would make more sense to automatically close the app after playing a file but use a /keep switch to keep it running, no?  Otherwise, simply dropping wav files on the exe will lead to several hanging instances.

You're right skwire, it would make more sense to close the process automatically and only keep it active when a "/keep" option was provided.

I've just tested it under Win7 X64 and it worked fine without any errors :)

Can you provide the sourcecode (after the change for the command line option), please? Seems you did it via autohotkey and so it would be easier to give it a better fitting icon *g*

About renaming it: I wouldn't call it "Escape" otherwise people will have a hard time to find this thread in a search engine when they're in need of such a miniplayer :)

P.S.: I'm on a birthday today so I can't follow this thread again until tomorrow afternoon (regarding further tests).

Regards and thanks a lot,
highend

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: wav player without any gui
« Reply #14 on: July 08, 2011, 10:38 PM »
Happy birthday!  :D  Custom icon and a new name: sWavPlayer

Website | Download
v1.0.1 - 2011-07-08
   + Website release.

v1.0.0 - 2011-07-07
   + Initial forum release.
« Last Edit: July 08, 2011, 11:06 PM by skwire »

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: wav player without any gui
« Reply #15 on: July 09, 2011, 07:57 AM »
Custom icon and a new name: sWavPlayer

Good name :Thmbsup:
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

WillieCee

  • Participant
  • Joined in 2011
  • *
  • Posts: 6
Re: DONE: wav player without any gui
« Reply #16 on: September 11, 2011, 06:40 AM »
Good name :Thmbsup:
[/quote]

Sure closes the door on adding mp3
"and i tunes is used up" :o 
I was looking for a quick and tiny player  for command line use without payload of the aboves for mp3.
I was also working with the abbr. title Command Line Audio Player or clap.exe
(as in your hands)

~willie

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: wav player without any gui
« Reply #17 on: September 11, 2011, 01:40 PM »
You can try passing an MP3 file to it.  If you have the appropriate MP3 codecs installed on your box, it should play.  No guarantees, though.

WillieCee

  • Participant
  • Joined in 2011
  • *
  • Posts: 6
Re: DONE: wav player without any gui
« Reply #18 on: September 15, 2011, 06:57 AM »
You can try passing an MP3 file to it.  If you have the appropriate MP3 codecs installed on your box, it should play.  No guarantees, though.

Flawless! MP3 :Thmbsup: and nothing showing on the tach either staying under 5% with frameless blowing and going to the music. After mp3 is done kills process within 5secs. clean exit. digital scrap book for the eyes/ and ears/.  Go ahead add the guarantee (not to hard to refund the price paid.)  Thank you ~willie

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: wav player without any gui
« Reply #19 on: September 15, 2011, 01:32 PM »
Unfortunately, I can't add the guarantee since that particular app just uses simple MCI SoundPlay functionality.  In other words, unless the user has installed the codec for a given file type, there really is no guarantee that the given file will play.  As a comparison, my Trout music player uses the BASS library for playback and will play back music files whether you have the installed codecs or not.  At any rate, I'm glad sWavPlayer is working for you.  :D

Original address: https://www.donationcoder.com/forum/index.php?topic=27254.0