Existuje na to API funkce.
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer
Vytvořte si tlačítko record a dejte tam tento kód:
mciSendString("open new Type waveaudio Alias recsound", "", 0, 0)
mciSendString("record recsound", "", 0, 0)
Pro uložení nahrávky:
mciSendString("save recsound c:\\nahravka.wav", "", 0, 0)
mciSendString("close recsound ", "", 0, 0)
Doufám, že to takto stačí :)
|