topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 6:26 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: wav player without any gui  (Read 37495 times)

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
    • View Profile
    • Donate to Member
DONE: wav player without any gui
« on: July 07, 2011, 05: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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #1 on: July 07, 2011, 06: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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #2 on: July 07, 2011, 06: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, 06:03 PM by skwire »

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #3 on: July 07, 2011, 11:53 PM »
FWIW, gave it a try under wine (1.3) and it seems to work fine (both with and without /exit)  :Thmbsup:

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #4 on: July 07, 2011, 11:56 PM »
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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #5 on: July 08, 2011, 12: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, 12:48 AM by skwire »

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,017
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #6 on: July 08, 2011, 12:48 AM »
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.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #7 on: July 08, 2011, 12: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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #8 on: July 08, 2011, 12: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
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #9 on: July 08, 2011, 01:15 AM »
Was that using a 64-bit system?
The wine test was with a 32-bit system.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #10 on: July 08, 2011, 01: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
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #11 on: July 08, 2011, 01: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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #12 on: July 08, 2011, 01:38 AM »
Sweet.   :D  Thanks, lanux.

highend01

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

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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #14 on: July 08, 2011, 05: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, 06:06 PM by skwire »

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,610
    • View Profile
    • Donate to Member
Re: wav player without any gui
« Reply #15 on: July 09, 2011, 02:57 AM »
Custom icon and a new name: sWavPlayer

Good name :Thmbsup:

WillieCee

  • Participant
  • Joined in 2011
  • *
  • Posts: 6
    • View Profile
    • Donate to Member
Re: DONE: wav player without any gui
« Reply #16 on: September 11, 2011, 01: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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: wav player without any gui
« Reply #17 on: September 11, 2011, 08:40 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.

WillieCee

  • Participant
  • Joined in 2011
  • *
  • Posts: 6
    • View Profile
    • Donate to Member
Re: DONE: wav player without any gui
« Reply #18 on: September 15, 2011, 01: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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: wav player without any gui
« Reply #19 on: September 15, 2011, 08:32 AM »
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