Hi, everyone. I am wondering how to write a C program for recording 5-second audio via the PC microphone. I only know it's quite easy to achieve this in the language of MatLab(by just using its wavrecord and wavwrite commands), however I have no idea how to do it in C programming language as I am new to C. Do I actually need to initialize the sound device? If so, how? I am with the Soundblaster Audigy and Windows XP. Any comments will be highly appreciated.