wav and mp3

This is a discussion on wav and mp3 within the C++ Programming forums, part of the General Programming Boards category; what do you use for mp3's, cuz wav is all PlaySound() uses...

  1. #1
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    Post wav and mp3

    what do you use for mp3's, cuz wav is all PlaySound() uses
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    I assume we're talking Windows.

    Use the MCI interface. A bit more complicated than PlaySound. Start reading at 'mciSendCommand'.

    One thing you'll notice is that there is no reference in MS documentation to the playing of MP3s. I've looked long & hard for some, but there is apparently none. If anyone knows, please tell.

    However, if you set the open mci command to autodetect media files, it will play MP3s on Windows 2000 and XP, although not on 95/98 etc.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  3. #3
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    DirectMusic plays mp3's.

    You can also use it to play any form of ACM compressed wav (with proper codecs).

  4. #4
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    Is there any way to convert mp3s to wavs?
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  5. #5
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    sure... there are programs. just look online for stuff. winamp will do it, too.

    i think 'wav4mp3' or 'mp34wav', i forget which, will mask an mp3 inside of a wave header.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [Win32] MP3 Playback
    By Lionel in forum Windows Programming
    Replies: 9
    Last Post: 01-02-2006, 03:55 PM
  2. The trouble with polymorphism
    By Stabbrie in forum C++ Programming
    Replies: 6
    Last Post: 04-05-2005, 09:06 AM
  3. create winamp like visualization in wav player?
    By V.G in forum Windows Programming
    Replies: 0
    Last Post: 10-13-2004, 07:08 AM
  4. enablling mp3 support in RH8
    By iain in forum Tech Board
    Replies: 1
    Last Post: 12-03-2002, 07:12 AM
  5. CD to MP3 Ripper
    By Davros in forum Windows Programming
    Replies: 7
    Last Post: 10-03-2002, 12:25 PM

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