Click here to Skip to main content
15,860,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I made a program to record audio from the line input of my soundcard using vb 2008. I've got the bitspersample set to 16. The samplespersec set 44100. Channels is set to 1 for mono. All that works just fine. But the kbps are very low. 88kbps for the last one I recorded. If I put that file in cool edit and resave it with the same file name it changes to over 700kbps. Is there code for vb to make it save the audio file with a higher kbps than 88kbps? I have included the code I have below.

mciSendString("open new Type waveaudio Alias capture", "", 0, 0)
mciSendString("set capture bitspersample 16", 0&, 0, 0)
mciSendString("set capture samplespersec 44100", 0&, 0, 0)
mciSendString("set capture channels 1", 0&, 0, 0)
mciSendString("record capture", "", 0, 0)

mciSendString("save capture c:\test.wav", "", 0, 0)
mciSendString("close capture", "", 0, 0)

Like I said it works like it is but I am trying to get a higher kbps.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900