Results 1 to 4 of 4

Thread: Sound Recording

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Location
    INDIA
    Posts
    1

    Talking Sound Recording

    PLEASE TELL ME WHAT API CAN I USE FOR CREATING MY OWN SOUND RECORDER
    WORLD

  2. #2
    TheSarlacc
    Guest
    what do u mean by SOUND RECORDER? will it be used to record from MIC input, LINE input, internal music source (Winamp etc..) ??

  3. #3
    Megatron
    Guest
    Use the record command from mciSendString.

  4. #4
    Megatron
    Guest
    Try this
    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.     'Open a WaveAudio called Record
    6.     mciSendString "open new type waveaudio Alias record", 0&, 0, 0
    7.     'Start Recording
    8.     mciSendString "record record", 0&, 0, 0
    9.    
    10. End Sub
    11.  
    12. Private Sub cmdSave_Click()
    13.  
    14.     'Stops recording
    15.     mciSendString "stop record", 0&, 0, 0
    16.     'Saves the sound
    17.     mciSendString "save record C:\Windows\Desktop\MyWav.wav", 0&, 0, 0
    18.     'Close "Record"
    19.     mciSendString "close record", 0&, 0, 0
    20.                                        
    21. 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
  •  



Click Here to Expand Forum to Full Width