How can I record to a .wav from a mocrophone??
I tried the MMcontrol but I can't seem to record to the .wav I want.
Is there an API that will do the job?
Is there sample code for the MMcontrol (other then the code in msdn-which is usless).
Printable View
How can I record to a .wav from a mocrophone??
I tried the MMcontrol but I can't seem to record to the .wav I want.
Is there an API that will do the job?
Is there sample code for the MMcontrol (other then the code in msdn-which is usless).
Here's a simple example of how to use the MMControl to Record a Wav and Save it.
------------------Code:Private Sub cmdSave_Click()
MMControl1.Command = "Save"
End Sub
Private Sub Form_Load()
With MMControl1
.DeviceType = "WaveAudio"
.FileName = "C:\New.wav"
.RecordMode = mciRecordOverwrite
.UpdateInterval = 10
.Command = "Open"
End With
End Sub
Private Sub MMControl1_StatusUpdate()
With MMControl1
Caption = (.Position / 1000) & "/" & (.TrackLength / 1000)
End With
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Certified AllExperts Expert