Re: [Opalvoip-devel] Windows Mobile: mobileOpal and simpleOpalCPU usage
Brought to you by:
csoutheren,
rjongbloed
From: Derek S. <de...@in...> - 2010-01-27 00:55:53
|
On Wed, 27 Jan 2010, Robert Jongbloed wrote: >> -----Original Message----- >> From: Matthias Kraft [mailto:car...@go...] >> >> MobileOpal can be started and registered at a SIP server. When calling >> another device (type seems irrellevant, works neither with Snom 820, >> various commercial softphones, Freeswitch softphone), the call is >> patched through, but upon starting up the RTP connection, mobileOpal >> just freezes up on me. I can send audio, but it is all choppy and >> garbled. I can not receive audio. > ..... >> I can also reproduce this behaviour with simpleOpal and Windows Vista: >> same result, the task manager tells me that the CPU-usage of >> simpleOpal.exe is up to 90%. The threads that strain the CPU are using >> MSVCR90.dll and wdmaud.drv. After hanging up, the CPU usage drops again. >> >> The behaviour is the same when using WinXP and Visual Studio 2005 for >> compiling and building. Debug, release or no-trace show the same fault, >> the trace doesn't give me any clues (or I've overlooked them). > > This is a total mystery. I regularly use XP, Vista, Vista 64, VS2005 pro and > VS2008 and have never had issues with the sound system. I cannot imagine > what you could have happened to break the sound system on EVERY platform you > have tried! > > As for Windows Mobile, I only have one Samsung i780 running WM6.1 and use > VS2005 for compilation, but this works fine for audio calls. The video is > awaiting an optimised codec, the processor just can't handle a straight > compiled one, it needs to be highly optimised. > >> Any ideas what to test next? > > The only thing I can think of is there are two sound interfaces in PTLib: > Windows Multi Media and DirectSound. The former is my preferred one and the > one I know works pretty much everywhere. The DirectSound one is a bit > suspect and I have not used it in years, though I believe others might. > yeah - sound devices. My win app works much better with directsound disabled. USB audio ? With two USB 1 audio devices going, sound can be a problem. In a voip call using opal there are two threads active at all times, play and record audio. Some usb audio devices demand to work at 48khz only, with lots of bits (32 bits is bad). The bandwidth (device to/from computer) of one active device is ok, like when you do a record media test. However, two active devices (play and record) can be too much. In the samples directory of ptlib, there is an audio test program that will do full duplex read and write of audio at the same time. Run the command audio -f -s devname and it will do a full duplex test on the audio device. This will verify if it is a sound issue. Unfortunately, the trunk version of ptlib does not include windows build files in the ptlib/samples/audio directory. If you could supply these, it would be great. Thanks, Derek. -- Derek Smithies Ph.D. IndraNet Technologies Ltd. ph +64 3 365 6485 Web: http://www.indranet-technologies.com/ "The only thing IE should be used for is to download Fire Fox" "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall |