Thread: Creating a MP3 player in c

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    4

    Creating a MP3 player in c

    I am a beginner programmer with good knowledge in C-Programming.

    Code:
    I haven't created any application yet.
    But i have no experience in application development.

    I have just coded spinets for my study experiment's.

    To gain good knowledge about developing application's i started two projects.

    One is Creating a MP3 player using c and another is

    A bitmap loader using c.

    My requirements are it should be the most simple code, but i will learn to code complex programs as i move along.

    I decided to use SDL for my MP3 player.

    All i need now is where to start and what should my first step.

    Please help me to become a professional from a student.

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    I think this is probably a little too hard for you if you aren't sure where to start..... Make sure you're up to the task first.

    In general, you need to think about the platforms you want to design this for, the interface, the internal details of what libraries to use, and then how to glue it all together. Much of the work at first has to be all about planning and overview before you get into coding. For the projects you listed, you need to have quite a good handle on C and be proficient enough to handle most of the aspects of the language.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    4
    Quote Originally Posted by MacGyver View Post
    I think this is probably a little too hard for you if you aren't sure where to start..... Make sure you're up to the task first.
    This is my first problem.

    Right now I am designing my Algorithm for this.

    but i need a good guide just to lead me as it is my first project.

    I am not working,but a student who want to code some projects to improve my knowledge.

    In general, you need to think about the platforms you want to design this for, the interface, the internal details of what libraries to use, and then how to glue it all together. Much of the work at first has to be all about planning and overview before you get into coding. For the projects you listed, you need to have quite a good handle on C and be proficient enough to handle most of the aspects of the language.
    I have quite good ideas regrading basic thing of c including a additional interest in pointers.

    I am sure that i can code something if i have the IDEA or ALGORITHM.

    What i am lacking is experience in developing APPLICATION project's.

    My Spec is to design platform independent player and hence i have chosen SDL.

    If some one guide me i will gain good exposure and knowledge and further i will be much thank full to them.

    Please help me.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You need to SPLIT your project into smaller modules first. You can start with one of several components, but you should not try to achieve all at once.

    You also need to have some sort of plan of how the different components interface from one another. More about that in a bit.

    Commonly, we start with the most important component first - to see that we can do the important bit. For example, an MP3 player needs to be able to play MP3 music - otherwise it's pretty much useless. So start by writing some code that can do that - don't bother about a user interface, other than some way to indicate what file you want to play - perhaps even a simple command-line app is the right thing here.

    Once you have something you can play MP3's with, you can start on the user-interface for example.

    You may also want to have play-lists - so you need to write some code that can arrange a list of MP3 files in the relevant ways. This also means that you (probably) need to save and load playlists from a file that stores this info - how do you do that? Again, it's a separate task, which can be done pretty much independently of the others.

    Once you have all the components (and I may not have listed ALL the parts you need - I have never built any form of MP3 player application), then you glue them together.

    Interfaces are important. How does the MP3 "play MP3" function recieve the Mp3 from the user interface. How does the user interface know how long the tune is? If you support playlists, how does the interaction of user interface, "play MP3" and play list management talk to each other.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 11-03-2008, 09:48 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. mp3 player
    By cmyoung23 in forum C++ Programming
    Replies: 8
    Last Post: 09-13-2007, 12:11 PM
  4. which Portable mp3 player?
    By Raihana in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 01-09-2004, 07:58 AM