: 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.
I remember at least one really great program. And so I've been
writing to people looking to find it. It was compiled to .exe.
The size was about 20Kb to 50kb. It worked very very well.
And I believe the C routines were possibly included.
I have been looking for a particular old software that might have simply been called rec.exe, record.exe
recordwav.exe , wavrecorder.exe.(or .com). They were about 10Kb to 50Kb in size.
In the days of soundcards and IRQ's and DOS 3.3 I used a very useful command line program
that offered simply these few choices.
1. a data rate - such as 8, 12, 16, 24khz
2. a bit size such as 8, 16
3. a file type such as .aiff, .au, .wav, .pcm (but not mp3)
4. a saved file name
The command line would have looked about like this:
C:\record -8kz -pcm -16 test.wav
Has anyone figured out how to create a recorder like this or
have they ever found one? Yes I know there are many recorders
for Windows. But I really want one for DOS.