Welcome Guest.   Make a donation to an author on the site August 22, 2014, 12:57:07 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2012! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: wav player without any gui  (Read 12922 times)
highend01
Supporting Member
**
Posts: 79


View Profile Give some DonationCredits to this forum member
« on: July 07, 2011, 05:25:17 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
Logged
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: July 07, 2011, 06:04:06 PM »

I can do this but I don't have Windows 7 64-bit so I'll rely on you for the testing.
Logged

skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: July 07, 2011, 06:25:22 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.  tongue  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:37 PM by skwire » Logged

ewemoa
Honorary Member
**
Posts: 2,412



View Profile Give some DonationCredits to this forum member
« Reply #3 on: July 07, 2011, 11:53:06 PM »

FWIW, gave it a try under wine (1.3) and it seems to work fine (both with and without /exit)  Thmbsup
Logged
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: July 07, 2011, 11:56:25 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?
Logged

skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: July 08, 2011, 12:01:54 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:54 AM by skwire » Logged

Edvard
Coding Snacks Author
Charter Honorary Member
***
Posts: 2,531



View Profile Give some DonationCredits to this forum member
« Reply #6 on: July 08, 2011, 12:48:03 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.
Logged

All children left unattended will be given a mocha and a puppy.
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: July 08, 2011, 12:49:54 AM »

Well, this isn't a full-fledged audio player.  It simply plays a single wav file, optionally exits, and that's it.   smiley  There are no playback controls, volume controls or otherwise.
Logged

skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: July 08, 2011, 12:54:38 AM »

Maybe I should name it something else so as not to give people the wrong idea?
Logged

ewemoa
Honorary Member
**
Posts: 2,412



View Profile Give some DonationCredits to this forum member
« Reply #9 on: July 08, 2011, 01:15:41 AM »

Was that using a 64-bit system?
The wine test was with a 32-bit system.
Logged
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #10 on: July 08, 2011, 01:17:04 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?
Logged

lanux128
Global Moderator
*****
Posts: 6,088



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: July 08, 2011, 01:36:25 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.. thumbs up
Logged

skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: July 08, 2011, 01:38:08 AM »

Sweet.   cheesy  Thanks, lanux.
Logged

highend01
Supporting Member
**
Posts: 79


View Profile Give some DonationCredits to this forum member
« Reply #13 on: July 08, 2011, 01:47:40 AM »

Hi and sorry for the delay (it was time for sleep here in good old germany) Wink

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 smiley

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 smiley

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
Logged
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: July 08, 2011, 05:38:21 PM »

Happy birthday!   cheesy  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:12 PM by skwire » Logged

Ath
Supporting Member
**
Posts: 2,196



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: July 09, 2011, 02:57:34 AM »

Custom icon and a new name: sWavPlayer

Good name Thmbsup
Logged

WillieCee
Participant
*
Posts: 6


View Profile Give some DonationCredits to this forum member
« Reply #16 on: September 11, 2011, 01:40:06 AM »

Good name Thmbsup
[/quote]

Sure closes the door on adding mp3
"and i tunes is used up" ohmy 
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
Logged
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #17 on: September 11, 2011, 08:40:11 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.
Logged

WillieCee
Participant
*
Posts: 6


View Profile Give some DonationCredits to this forum member
« Reply #18 on: September 15, 2011, 01:57:26 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
Logged
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #19 on: September 15, 2011, 08:32:05 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.   cheesy
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.043s | Server load: 0.02 ]