Jump to content

Recommended Posts

Posted (edited)

hello i have found this example

#include <Media.au3>
MsgBox(0,"Media UDF by Svennie (sound record example)","When you click OK it starts with recording, when you press Escape it will stop recording and show a dialog to save your file.")
HotKeySet("{ESC}","StopRecording")
$Stop=1
Func StopRecording()
    $Stop=0
EndFunc
$Media=_MediaCreate(6)
_MediaRecord($Media)
While $Stop
WEnd
_MediaStop($Media)
$File=FileSaveDialog("","","Wave files (*.wav)")&".wav"
If @error Then
    _MediaClose($Media)
    Exit
EndIf
_MediaSave($Media,$File)
_MediaClose($Media)

instead of sending it to this file it should send it over tcp

the problem is that i dont know what to send

the $media only produce 1 ?

any help here?

the media.au3 is in the attachments

Media.au3

Edited by TheOnlyOne

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...