|
-
Sep 28th, 2001, 06:09 AM
#1
Thread Starter
New Member
Sound Recording
PLEASE TELL ME WHAT API CAN I USE FOR CREATING MY OWN SOUND RECORDER
-
Sep 28th, 2001, 11:38 PM
#2
what do u mean by SOUND RECORDER? will it be used to record from MIC input, LINE input, internal music source (Winamp etc..) ??
-
Sep 29th, 2001, 06:22 PM
#3
Use the record command from mciSendString.
-
Sep 29th, 2001, 06:24 PM
#4
Try this
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 record", 0&, 0, 0
'Start Recording
mciSendString "record record", 0&, 0, 0
End Sub
Private Sub cmdSave_Click()
'Stops recording
mciSendString "stop record", 0&, 0, 0
'Saves the sound
mciSendString "save record C:\Windows\Desktop\MyWav.wav", 0&, 0, 0
'Close "Record"
mciSendString "close record", 0&, 0, 0
End Sub
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
|