Is there anyway I can play an Mp3/Wav file from the command line (from an app either with a function or a system call) preferably cross platform compatible (Linux & Win32).
Thanks!
Is there anyway I can play an Mp3/Wav file from the command line (from an app either with a function or a system call) preferably cross platform compatible (Linux & Win32).
Thanks!
Cross platform is going to be tough.
For Windows PlaySound() will play a wave file.
MP3's have to be decoded. So you could launch an MP3 player program from your program. I dunno if windows comes with an MP3 player... I would think Windows Media Player plays MP3's (?) Or, you'd have to find a sample or open-source program to write your own MP3 decoder/player.
Media Player plays MP3s so does Winamp.
If you ever need a hug, just ask.
Hmm, just out of curiosity, how difficult is it to write your own MP3 decoding/playing code?
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.