[pywin32-checkins] pywin32/com/win32com/src PythonCOM.cpp,1.32,1.33
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Lars I. <lar...@us...> - 2004-11-30 21:30:37
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6405/com/win32com/src Modified Files: PythonCOM.cpp Log Message: Added (some) DirectSound support. The bulk is in com/win32comext/directsound, including a test directory with a sample soundfile and a unittest-based test script. Supported are: - IDirectSound - IDirectSoundBuffer - IDirectSoundNotify. Also added support for: - WAVEFORMATEX (in PyWinTypes) - DSBUFFERDESC - DSBCAPS - DSCAPS - various constants used in these structures Missing is: - IDirectSoundCapture - complete documentation Index: PythonCOM.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PythonCOM.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** PythonCOM.cpp 28 Aug 2004 22:07:22 -0000 1.32 --- PythonCOM.cpp 30 Nov 2004 21:30:27 -0000 1.33 *************** *** 499,506 **** IDispatch *disp = NULL; SCODE sc; ! Py_BEGIN_ALLOW_THREADS; // Cant use the INTERFACE macros twice :-( ! sc = unk->QueryInterface(IID_IDispatch, (void**)&disp); ! unk->Release(); ! Py_END_ALLOW_THREADS; if (FAILED(sc) || disp == NULL) return PyCom_BuildPyException(sc); --- 499,509 ---- IDispatch *disp = NULL; SCODE sc; ! // local scope for macro PY_INTERFACE_PRECALL local variables ! { ! PY_INTERFACE_PRECALL; ! sc = unk->QueryInterface(IID_IDispatch, (void**)&disp); ! unk->Release(); ! PY_INTERFACE_POSTCALL; ! } if (FAILED(sc) || disp == NULL) return PyCom_BuildPyException(sc); |