Play Mp3...

This is a discussion on Play Mp3... within the C++ Programming forums, part of the General Programming Boards category; Is there anyway I can play an Mp3/Wav file from the command line (from an app either with a function ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    59

    Play Mp3...

    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!

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    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.

  3. #3
    The Pantless Man CheesyMoo's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Media Player plays MP3s so does Winamp.
    If you ever need a hug, just ask.

  4. #4
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. play MP3 on win32 consol project
    By Skull in forum C++ Programming
    Replies: 11
    Last Post: 02-09-2008, 03:30 PM
  2. not able to play MP3 files in SUSE 10.0
    By kris.c in forum Tech Board
    Replies: 0
    Last Post: 09-14-2006, 04:36 AM
  3. Mp3 play - MCI
    By geek@02 in forum Windows Programming
    Replies: 4
    Last Post: 09-30-2004, 08:07 PM
  4. Gui Class With Tic Tac Toe
    By xxYukoxx in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2003, 04:28 PM
  5. How do I play an MP3?
    By Hunter2 in forum Windows Programming
    Replies: 28
    Last Post: 05-20-2002, 08:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21