-
March 3rd, 2003, 11:06 AM
#1
Member
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
-
March 3rd, 2003, 03:53 PM
#2
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, 06:47 PM
#3
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, 08:47 PM
#4
Senior Member
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, 06:35 PM
#5
Member
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, 07:46 PM
#6
well that link above is great! Lots of good info.
-
March 6th, 2003, 03:12 AM
#7
Senior Member
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
-
March 7th, 2003, 07:29 PM
#8
Member
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
-
Forum Rules
|
|