Thread: Mp3 Hhheeellllpppp !!!!!!!!

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    15

    Mp3 Hhheeellllpppp !!!!!!!!

    Hi. i want to write a program for an embbedded mp3 player but i havent really done anything with music and mp3's before. ill be using ms dev studio rather than a linux platform so does anyone know where i can find how to write to a sound card and can you tell me how to decode the mp3 or even if i need to or is there function i can just pass it to anyone heeeeellllllpppppppp

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Is there some problem with sticky keys on your keyboard?

    How about going to google and typing in
    MP3 file format
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    That doesnt work. there isnt anything thats why i came on this forum.

  4. #4
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169
    bs... google has everything!
    "uh uh uh, you didn't say the magic word"
    -Jurassic Park

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >bs... google has everything!
    Not everything. A search for "Mp3 Hhheeellllpppp !!!!!!!!" returns zero matches. That could be why it didn't work for the OP.
    My best code is written with the delete key.

  6. #6
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    is it always full off people with great comments or is there some one that can actually help some one that doesnt say bs google has everything cause it really doesnt. and someone that doesnt think i have a sticky key board. just because you know what an if statement is doesnt mean you can programme are you sure you should be giving advice.

  7. #7
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Very well.

    >anyone know where i can find how to write to a sound card
    Use an API (DirectX for example) or find out if your sound card has its own API that you can use directly.

    >can you tell me how to decode the mp3
    www.wotsit.org. Search for mp3.

    >is it always full off people with great comments
    It depends on the question asked. Poor questions get sarcastic answers.

    >some one that doesnt say bs google has everything cause it really doesnt
    Believe it or not, google can help you to answer 99% of your questions. However, you have to use it intelligently. It's not a magic bullet that reads your mind and finds the one page on the internet that is exactly what you're looking for.

    >and someone that doesnt think i have a sticky key board
    Don't say things like "hhhhhhheeeeeeeellllllllllppppppp" and it will minimize such responses.

    >just because you know what an if statement is doesnt mean you can programme
    Mmhmmm. And the point of this other than an irrelevant personal attack is...

    >are you sure you should be giving advice
    Yes. Are you sure you should be asking for our advice since you seem to disapprove of our methods so much?
    My best code is written with the delete key.

  8. #8
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    ok if u feel u can use it more intelegently go ask it for a cross compiler in c for mp3 player any way you want to i dont mind i just want to get it. ive tried wotsit thanks for the suggestion is a great site but doesnt really tell you how to decode an mp3 very well. see thats more like a proper answer why cant you just do that in the first place.

  9. #9
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    i dont disaprove im just looking for a more high leveled answer than look on google. more like look in such and such header file. or you can find driver handlers in this file header. you can write to that device in this way. i thought that was what i would get not go search for it.

  10. #10
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >go ask it for a cross compiler in c for mp3 player
    Well, I don't know of a compiler that has built in functions for working with mp3's at all. Perhaps you should be looking for a portable audio library instead.

    >why cant you just do that in the first place.
    Because (no offense) your question sucked and the answer could be more easily found on google.

    >more like look in such and such header file
    >or you can find driver handlers in this file header
    Such an answer would be assuming that you had the library that defines the header.

    >you can write to that device in this way
    What device? You didn't specify anything but "sound card". We can't be very specific about writing directly to hardware without the specifics of the hardware.

    p.s. Try searching google groups. I get plenty of hits for mp3 decoding in C. I didn't read them thoroughly though.
    My best code is written with the delete key.

  11. #11
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    see thats why i wish i was using linux as it does have a header file that tells you all about your sound card but i dont know if windows does i might just do it in linux as it is so much easier to cross compile.

  12. #12
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Originally posted by liams7
    see thats why i wish i was using linux as it does have a header file that tells you all about your sound card but i dont know if windows does i might just do it in linux as it is so much easier to cross compile.
    Since when? Linux comes packaged with headers for each sound card? What's the header used for the Turtle Beach card? Or the Audiophile 2496? I haven't run across anything like this on linux? Heck, I had trouble with my sound card and linux wasn't all that helpful.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  13. #13
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Someone should add a "How to use Google" tutorial to this site. On the other hand, maybe not, we couldn't look like "experts" if just anyone could go and get the information from Google/MSDN/Man!

    http://www.google.com/search?q=play+mp3+code+windows
    http://groups.google.com/groups?q=play+mp3+code+windows
    http://www.google.com/search?q=mp3+s...plusstreet.com
    http://www.mp3-tech.org/programmer/programmers.html(Found via Google Groups)

  14. #14
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Check-out LAME, and search SourceForge for other mp3 projects.

    You could also try searching Programmers Heaven for some sample code.

    Note that the mp3 format is not "open source". You're supposed to pay a liscencing fee if you "distribute" your application.

    Also, don't expect the mp3 format to be simple! I think the compression & encoding algorithms are rather complex.

    There are lots of ways to communicate with the sound card. The MMSYSTEM (Multimedia System) commands should be included with dev studio. Or, you can use DirectX/DirectSound. You might have to download the DirectX SDK. Unfortionately, I don't have a reference that covers all of the sound-related functions.
    Last edited by DougDbug; 03-16-2004 at 02:04 PM.

  15. #15
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169
    ok, i did a google search for mp3's and c++ and didn't find much, so i stand corrected. the overall tone from your post may me think you were just too lazy to look for yourself, so im sorry. you may consider looking into fmod (www.fmod.org). haven't used it myself but i hear it's fairly powerful and very easy to use. a lot of opengl stuff i've looked at recently uses it for music. also im pretty sure it's free for non commercial use...
    "uh uh uh, you didn't say the magic word"
    -Jurassic Park

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. which Portable mp3 player?
    By Raihana in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 01-09-2004, 07:58 AM
  2. MP3 to WAVE and WAVE to MP3 conversion
    By Blizzarddog in forum C++ Programming
    Replies: 8
    Last Post: 01-01-2004, 08:32 PM
  3. mp3 players vs mp3 cd players
    By Geo-Fry in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-06-2003, 09:22 PM
  4. Mp3
    By gvector1 in forum C# Programming
    Replies: 15
    Last Post: 07-08-2003, 05:48 PM