March 3rd, 2003, 10:06 AM
Audio programming in C++
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
March 3rd, 2003, 02:53 PM
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.
March 3rd, 2003, 05:47 PM
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.
March 3rd, 2003, 07:47 PM
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.
March 5th, 2003, 05:35 PM
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
March 5th, 2003, 06:46 PM
well that link above is great! Lots of good info.
March 6th, 2003, 02:12 AM
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
March 7th, 2003, 06:29 PM
Thnx Johnny. I appreciate ur help