Results 1 to 8 of 8

Thread: Audio programming in C++

  1. #1

    Audio programming in C++

    Hi Guys
    Just wanted to ask u abt audio programming using C++. What I want is to do develop a wav or mp3 decoder or a music file format converter. I'm also thinking abt implementing frequency modulation, pulse code modulation etc using wav files as inputs. Cud anyone of u pls help me with this
    thnx

  2. #2
    Senior Member
    Join Date
    Feb 2003
    Posts
    118
    First on witch system do you want to develop ? Windows ? Linux ? other ?

    In windows you can use DirectSound to read and write wave file.
    In Linux there is already a tool like you want to make but I don't remember its name.
    You can look at http://www.harmony-central.com/Computer/Programming/ I think you can find some usefull things or at http://www.thefreecountry.com/docume...nesound.shtml.
    You can look at the fmod library (http://www.fmod.org). This is a multi-platform sound library.

  3. #3
    Senior Member
    Join Date
    Oct 2001
    Posts
    748
    If you are interested in doing audio related programming you should check out the Maxx and/or C-Sound programming languages. They are very similiar to C, just geared toward working with audio.

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    161
    Last semester, I learned in a course how to read WAV files with C, the we were able to graph the files and later obtain the fourier transforms of the WAV's. The files were about 10 seconds of sound, they weren't big because we were using Turbo C, since it was in dos mode it was kind of limited for processing big files. If you are really interested I will write you the function for reading the WAV and for graphing it, with this you could sure easily implement modulation or sampling or whatever.
    As for file conversion and decoding, I have no idea.

  5. #5
    I'm trying to develop it for anyone out of Win or Linux whichever is easier but for win I don't want to use any API's.
    Johny, I'd be very grateful if u cud get those functions for me. Also, pls explain the basics required for it. Are there any other prerequisites besides knowing general C++ programming

  6. #6
    er0k
    Guest
    well that link above is great! Lots of good info.

  7. #7
    Senior Member
    Join Date
    Apr 2002
    Posts
    161
    Shantz, here are the functions in C that i used... I have added comentaries on the code so some things are clarified. You need to download and use the Turbo C compiler, because of the graphic mode i used, I don't know how to implement the code for other compilers. If you need the funcitons for fourier transforms, tell me, and i'll look for em in my notes....
    Any further help PM me


    cheers

  8. #8
    Thnx Johnny. I appreciate ur help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •