|
Thread: Mic
-
Jul 1st, 2001, 12:46 PM
#1
Thread Starter
Member
Mic
How do you get input from the MIC and possibly a WebCam?
-
Jul 1st, 2001, 01:03 PM
#2
To get input from the Microphone, you could use the mciSendString function with the record command:
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()
'Open a WaveAudio called Record
mciSendString "open new type waveaudio Alias rec", 0&, 0, 0
'Start Recording
mciSendString "record rec", 0&, 0, 0
End Sub
Private Sub cmdSave_Click()
'Stops recording
mciSendString "stop rec", 0&, 0, 0
'Saves the sound
mciSendString "save rec C:\Windows\Desktop\MyWav.wav", 0&, 0, 0
'Close "Record"
mciSendString "close rec", 0&, 0, 0
End Sub
-
Jul 3rd, 2001, 03:28 PM
#3
Thread Starter
Member
OK Great!
Also, Do you know how I could monitor the MIC levels so that I only record when the input amplitude is above a certain level?
Thanks
PS. Also the WebCam thing?
-
Jul 3rd, 2001, 04:07 PM
#4
As for the webcam, you can try some of the controls at www.shrinkwrapvb.com They deal with video capturing.
-
Jul 3rd, 2001, 04:14 PM
#5
Thread Starter
Member
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
|