[python-win32] mciSendCommand from win32 ???
Tim Roberts
timr at probo.com
Tue Nov 29 18:31:40 CET 2005
On Mon, 28 Nov 2005 13:55:00 +0100, <durumdara at mailpont.hu> wrote:
>I want to call mciSendCommand to record a music in Windows.
>
>I want to do same thing like in this code (Delphi):
>...
>
>1. Can I do it ?
>2. If not, what is the solution (I haven't Delphi... I have only
>freeware things)
>
>
I have not seen a Python wrapper for the multimedia APIs in winmm.dll.
There are a couple of references in Google, but no good hits.
However, you could certainly construct one with ctypes. In your case,
all you should need is the mciSendString command. Everything you have
done with mciSendCommand can be done with the simpler mciSendString
commands, kind of like this:
mciSendString( "open new type waveaudio alias cap" )
mciSendString( "set cap bitspersample 16 channels 1 samplespersec 44100" )
mciSendString( "record cap" )
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-win32
mailing list