Thread: working with compressed files

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    2

    working with compressed files

    -beginner level programmer.
    I've written a couple of small programs to manipulate .wav and .bmp files.
    Could anyone give me an overview of how I'd work with files such as mp3 or jpg? Any book or a website recommendations?

    Thanks

    tony

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What environment are you using these functions? I take it is windows. I know for a fact that you can load JPEG images as part of teh CImage in MFC. I don't think the corresponding sound functions support MP3's tho.

    The essence is that you will have to decompress the file-content before you can use it. Depending on what you want to do, MP3's may not need completely decoding before they are "useful" - but you certainly need an MP3 decoder.

    Try this one:
    http://osalp.sourceforge.net/

    --
    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.

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    2
    Thanks. I'll give that a try.
    Yes -using XP.
    Maybe I should get into Linux-another question - is that better for learning to program, or is that a massive debate?

    Cheers
    Tony

  4. #4
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    I'd say neither. Just learning the basics of programming can be done on either Windows or Linux. The only differences really come in once you get into platform specific stuff.
    However, having knowledge of how things work in both OSs is useful.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  5. #5
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by tonyjeffs View Post
    Maybe I should get into Linux-another question - is that better for learning to program, or is that a massive debate?
    I think the biggest benefit to choosing Linux as a learning platform is the HUGE body of open source code available for that platform. Of course, open source isn't limited to just Linux, but a lot of the projects you'll find on the Internet are Linux-only, or at least only actively developed for Linux.

    I don't even want to get into which platform is "better," though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Working with multiple source files
    By abh!shek in forum C Programming
    Replies: 17
    Last Post: 06-03-2008, 11:23 AM
  2. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  3. Working With Files
    By Explicit in forum C Programming
    Replies: 3
    Last Post: 06-03-2004, 01:30 PM
  4. working with resource files
    By the Wookie in forum Windows Programming
    Replies: 4
    Last Post: 02-01-2003, 10:26 AM
  5. Dos commands hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 02:51 PM