I want to write a program in C that will take a .wav file as an input and will output a C array i.e. raw PCM samples. I know the bitrate and have other information about the .wav file beforehand and I just want the PCM samples. The PCM samples are to be loaded on a microcontroller and hence the C array. Where do I start? Please help!!
anumash
0
Newbie Poster
Recommended Answers
Jump to PostI can't remember the sample size in WAV files, but I think it is 16 bits, which is a short integer in C. However, the bit order is something you need to determine, just in case you need to re-order the samples before uploading to the microcontroller. IE, this is …
All 3 Replies
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
anumash
0
Newbie Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.