Searching in the source of PWLib and on comments on the internet, I discourage the use of DirectSound for now...
No DirectShow code yet on sources and DirectShow being replaced by DXVA
(DirectX Video Acceleration)
DirectSound being replace by XNA Audio: XACT2 (Cross Audio Creation Tool
2)
Windows Vista and .Net 3.5 (WDDM drivers) fallback to software mixer
until specific accelarated drivers are made by vendors
Installing 2Gb of DirectX old SDK (today is november_dx10 SDK, dx11 preview) only to have access to sound is a pain....
Other thing: adding the Error String header or Util header to the production code implies in redistribute of the dx#.dll. It is a back of the DLL Hell pain because each year 2 or 3 versions of SDK are made, many versions of dx#.dll are avaible (four versions -or more- for DX9SDK, for example fev., ago., oct., nov.)
PS.: Now I remembered, really the source for PWLib can be the h323plus site, no CVS repository for that.
2008/11/28 JobsGuo(Guo Huayong) ghyhust@126.com
Thanks for all your help. Yes,I install directx sdk 9.0c. maybe I should download the lastest version from svn,now,I just download it from www.packetizer.com.
I also try to modify the config.c to :
dnl MSWIN_DISPLAY dsound,Direct Sound Support dnl MSWIN_CHECK_FILE dsound,include\dsound.h,P_DIRECTSOUND=1 dnl MSWIN_DISPLAY dshow, Direct Show Support dnl MSWIN_CHECK_FILE dshow, include\DShow.h, P_DIRECTSHOW =1 dnl MSWIN_DIR_SYMBOL dsound,DIRECTX_DIR dnl MSWIN_DIR_SYMBOL dshow, DIRECTX_DIR
Although when I compile it with Visual studio c++2003,it output "Direct Show Support", at fact,when I compile the myphone2, I find it donot support.
Thanks again. 2008-11-28
JobsGuo(Guo Huayong)
*发件人:* Nyamul Hassan *发送时间:* 2008-11-28 19:07:42 *收件人:* h323plus *抄送:* *主题:* Re: [h323plus] how to support directshow Hi,
As Ryan said, you need DIRECT X SDK, not DirectX9.0c
Regards HASSAN
----- Original Message ----- *From:* JobsGuo(Guo Huayong) ghyhust@126.com *To:* Ryan Yan yanrongrong1983@msn.com ; h323plush323plus@lists.packetizer.com *Sent:* Friday, November 28, 2008 12:59 *Subject:* Re: [h323plus] how to support directshow
Hi,Dear Ryan: It is very exit to received an chinese friends reply. Maybe I did not describe my difficulty clearly.I install all the parts of Directx9.0c. At fact,I always develop project based on DShow.And follow your remind,I reinstall the DirectX9.0c, it is same as the last time. I said I can not find dshow.h,just means I can not find it in the ptlib/dshow.h. I ever remember it need #include <ptlib/dshow.h>.but today,I do not find this code. At last,Do you sure it support dshow just install directx9 without any other set? Thanks again.
2008-11-28
JobsGuo(Guo Huayong)
*发件人:* Ryan Yan *发送时间:* 2008-11-28 14:32:18 *收件人:* JobsGuo(Guo Huayong); h323plus *抄送:* *主题:* Re: [h323plus] how to support directshow Dear JobsGuo,
Please double check if you have installed all the parts of DirectX 9.0 SDK.
I can find dshow.h in \DXSDK\include\
If you have any other problem, you can contact me.
You are Chinese too[image: 微笑 图释]
Good luck, Ryan
*From:* JobsGuo(Guo Huayong) ghyhust@126.com *Sent:* Friday, November 28, 2008 1:56 PM *To:* h323plus h323plus@lists.packetizer.com *Subject:* [h323plus] how to support directshow
Hi,all. when I compile the ptlib-v2_0_1,I find the config in ptbuildopts.h show below:
///////////////////////////////////////////////// // // DirectX Support (Windows only) //
#ifndef _WIN32_WCE #define P_DIRECTSOUND 1 #undef P_DIRECTSHOW #undef P_VFW_CAPTURE #endif
So I can not get the directshow support.but I can get the directsound support.I indeed install directx 9.0c.so it can find the directx file. but why it can not find the directshow? Besides,I also can not find the dshow.h. Who can help me ?thanks!
2008-11-28
JobsGuo(Guo Huayong) Mobile:13918103120 QQ : 360480589 MSN : ghyhust@hotmail.com