From: Mihai B. <mi...@ha...> - 2009-04-16 02:46:05
|
On Apr 15, 2009, at 5:19 PM, inode wrote: > Hi all, > > I'm trying to wrote a little program that use the > iaxc_set_test_mode, but > seem that I misunderstand something. From iaxclient.h: > > * Test mode functionality > * In test mode, iaxclient will do the following: > * - skip audio and video hardware initialization > * - wait for outgoing media to be provided by the main application > * - return incoming media to the calling application if required, > via > callbacks > > So, seem that you can also receive audio etc ("return incomin media"). > >> From my test I can't receive any audio, I looked on the source code >> of the > library and seem the callback IAXC_EVENT_AUDIO is disabled when the > iaxc_set_test_mode is called. > > Anyone can tell me if I'm wrong in something or tell me if with when > test mode is active you cannot get the audio stream? In test mode you you can get the incoming audio stream, either encoded or in raw form. It depends on what flags you use to initialize the library. You will not be able to get outgoing audio, which is quite normal considering that your audio hardware is not initialized and, as a matter of fact, the application is supposed to provide the outgoing audio Take a look at the audio flags in iaxclient.h and also check out simpleclient/stresstest, which is an example application that uses the test mode. Hope this helps, Mihai |