|
-
Jul 12th, 2001, 08:29 AM
#1
Micropohone Input
how do i obtain any sound that is generated from the microphone or line-in ports? i kinda wanna try a .wav recorder and dont know how to record from these two ports? thanx
-
Jul 12th, 2001, 08:48 AM
#2
Use the mciSendString function.
VB Code:
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Private Sub cmdRecord_Click()
mciSendString "open new type waveaudio Alias record", 0&, 0, 0
mciSendString "record record", 0&, 0, 0
End Sub
Private Sub cmdSave_Click()
mciSendString "stop record", 0&, 0, 0
mciSendString "save record C:\Windows\Desktop\MyWav.wav", 0&, 0, 0
mciSendString "close record", 0&, 0, 0
End Sub
-
Jul 13th, 2001, 03:36 AM
#3
1 part of the problem solved...
and how do i set the format of the recorded sound?
i mean like how do i set the format to say umm 22khz,8bit?
-
Jul 13th, 2001, 01:37 PM
#4
Member
problem
gate keepers code will record anything coming from the sound card, he wants to record the microphone?
-
Jul 14th, 2001, 01:10 AM
#5
yeah i do want to record from the microphone!! anyone can help me? i also need to be able to control the quality of the recorded sound. is it possible?
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
|
Click Here to Expand Forum to Full Width
|