Results 1 to 5 of 5

Thread: Micropohone Input

  1. #1
    TheSarlacc
    Guest

    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

  2. #2
    Megatron
    Guest
    Use the mciSendString function.
    VB Code:
    1. 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
    2.                                        
    3. Private Sub cmdRecord_Click()
    4.  
    5.     mciSendString "open new type waveaudio Alias record", 0&, 0, 0
    6.     mciSendString "record record", 0&, 0, 0
    7.    
    8. End Sub
    9.  
    10. Private Sub cmdSave_Click()
    11.  
    12.     mciSendString "stop record", 0&, 0, 0
    13.     mciSendString "save record C:\Windows\Desktop\MyWav.wav", 0&, 0, 0
    14.     mciSendString "close record", 0&, 0, 0
    15.                                        
    16. End Sub

  3. #3
    TheSarlacc
    Guest

    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?

  4. #4
    Member
    Join Date
    Jul 1999
    Location
    Oak Park, IL, USA
    Posts
    43

    problem

    gate keepers code will record anything coming from the sound card, he wants to record the microphone?

  5. #5
    TheSarlacc
    Guest
    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
  •  



Click Here to Expand Forum to Full Width