Commit Graph

2635 Commits

Author SHA1 Message Date
Nanang Izzuddin 11951c3997 Ticket #716 (app misc): fixed info of ilbc default mode in pjsua app menu.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2507 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 23:04:21 +00:00
Benny Prijono 9920dc304b (Major) Task #737 and #738: integration of APS-Direct and Audiodev from aps-direct branch to trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2506 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 18:11:37 +00:00
Benny Prijono d9e8dfea2d Initial fixes for ticket #747: bugs in parsing SIP torture messages (RFC 4475):
- SIP version components may be separated by whitespaces (e.g. "SIP / 2.0")
 - parsing of mangled header when for unknown/generic header
 - Via parameters were parsed with paramchar rather than token
 - handling NULL character inside quoted string

Some torture messages have been added in the Python test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2505 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 11:25:11 +00:00
Nanang Izzuddin 05b25282d1 Fixed Symbian APS auddev that Stop() should wait until initialization completed (if initialization is on progress).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2504 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-11 14:52:10 +00:00
Nanang Izzuddin fa92382c62 - updated delay statistic calculations to use pj_math_stat, also added
min, avg, dev of latency into the test result
- fixed drift report
- updated test result calculations to use division with rounding




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2503 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-11 11:28:44 +00:00
Nanang Izzuddin df7937c365 Fixed Symbian APS auddev to apply output volume param in stream creation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2502 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-11 11:24:12 +00:00
Benny Prijono ccd90bbee2 Continuing task #741 for aps-direct: updated GNU build system for the new audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2501 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 15:14:11 +00:00
Nanang Izzuddin 08694eaa20 - Added feature to increase/decrease output volume in symbian_ua
- Removed optimization setting in some MMP files
- Added new symbian_ua.pkg in Carbide development for comfortness



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2500 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 15:03:04 +00:00
Benny Prijono 5ba56a594f Part of task/ticket #741: updated VS 2005 project for audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2499 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 13:40:00 +00:00
Nanang Izzuddin fcb92d01a6 - updated APS set_cap() to store output volume setting into stream param.
- updated APS get_param() to return actual volume setting.
- updated symbian_ua application to use the new pjsua-lib APIs: snd_set/get_setting().




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2498 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 13:32:09 +00:00
Benny Prijono e506c8ca7c Disable echo cancellation related setting from pjsua_aud_get/set_setting()
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2497 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 13:28:43 +00:00
Benny Prijono 09b0ff6a7c Bug fixes from last changes:
- close sound device after opening it in pjsua_aud_set_setting()
 - bug in aud_svmask checking



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2496 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 12:07:51 +00:00
Benny Prijono cf6b590455 Attempt to reduce burst in wmme_dev by limiting the number of AddBuffer calls. It does not seem to affect the burst much as it seem to have come from the device/driver itself
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2495 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 12:05:23 +00:00
Benny Prijono 85bdaa85ae WMME returns the updated volume setting in get_param()
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2494 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-09 13:22:01 +00:00
Benny Prijono f798e5042e BIG refactoring in pjsua_media.c:
- switchboard/conf detection is done at run-time, removing #ifdefs
     - use one function, open_snd_dev() to open device
     - use one function, create_aud_param() to initialize 
       audio parameters:
         - get the default from device
         - override with user settings previously done with
           pjsua_snd_set_setting() (new API)
 - added new API to set/get sound device settings. The settings are
    semi permanent, it will be used for future opening of sound dev:
     - pjsua_snd_set_setting()
     - pjsua_snd_get_setting()
 - snd_auto_close_time default value changed to 1 (from -1)
 - both pjsua_enum_snd_devs() and pjsua_enum_aud_devs() API are now
    supported (previously it was done with #ifdef).
 - make_call() will not open the sound device is switchboard is 
    used



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2493 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-09 13:08:16 +00:00
Benny Prijono 7a380009f1 PJMEDIA/PJMEDIA-AUDIODEV update:
- pjmedia.h: re-added inclusion of <sound.h> since we have compat 
    layer now
- audiodev.h: 
    - added input_vol and output_vol in pjmedia_aud_param, and
       implement it on WMME dev
    - added  pjmedia_aud_dev_cap_name() to see cap name
    - added pjmedia_aud_param_set_cap() and  pjmedia_aud_param_get_cap()
      to set and get specific capability in param
- conference.h: exported PJMEDIA_CONF_BRIDGE_SIGNATURE and 
    PJMEDIA_CONF_SWITCH_SIGNATURE since these are needed by PJSUA-LIB
- WMME: bug due to addition of input_vol and output_vol in param: 
    volumes are set in flags in default_param(), but the
    fields are not set. This would cause audio volume to be set to
    zero for example.
- WMME: some refactoring, removed duplicate settings in param
- WMME: bug: setting set in set_cap() is not saved to param, so
    get_param() will return wrong setting
- APS: update because of s/out_route/output_route/ in param
- APS: same bug as WMME due to addition of input_vol and output_vol in
    param: flags are set in param but the fields are not



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2492 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-09 12:55:29 +00:00
Nanang Izzuddin da37ea3e5d - Fixed compile errors/warnings for Symbian targets.
- Updated module dependencies of symbian auddev implementations.
- Minor updates, e.g: missing update on symbian_ua UID changing, updated default log level for logfile.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2491 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-06 16:24:43 +00:00
Nanang Izzuddin 7dc6b41d01 - Removed lines of "force to use C++ compiler" in some Symbian MMPs
- Updated symbian_ua UID
- Added compiler optimization flag in pjmedia_auddev.mmp
- Deleted obsolete symbain_audio_aps.mmp




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2490 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-06 16:12:31 +00:00
Benny Prijono 64f9138598 Ticket #736 (aps-direct branch): implemented the compatibility layer for the old sound API
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2489 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-05 18:02:28 +00:00
Benny Prijono 8eeab0bbf5 Ticket #734: error codes in audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2488 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 19:00:28 +00:00
Nanang Izzuddin 48c91fd4f9 Updated Symbian APS aud dev to disable G729's VAD since it is suspected to produce intermittent noise on silence (rough switches between voiced & unvoiced frames).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2487 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 18:49:06 +00:00
Nanang Izzuddin 8465c68153 Fixed pjsua_set_snd_dev() to differentiate the way of opening sound device based on the used conf type.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2486 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 17:23:25 +00:00
Benny Prijono 79c323a461 Ticket #744: Jitter buffer does not discard duplicate frame if it is currently empty (thanks Mårten Wikström for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2485 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 14:53:12 +00:00
Benny Prijono 9158a3a88e Ticket #742: Change in mapped/STUN IP address does not update ICE srflx candidate (thanks Alexei Kuznetsov for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2484 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 12:56:32 +00:00
Nanang Izzuddin a377597ed8 - Fixed player callback (for PCM) of APS aud dev to zero-fill the buffer whenever it gets non-audio frame type.
- Updated symbian_ua.mmp to allow it links to multiple audio back-ends (feature of the new audio device framework).
- Minor fix in symbian_ua to use codec macros instead of sound device macro.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2483 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-03 18:25:55 +00:00
Nanang Izzuddin 90b8320681 Ticket #732:
- Added new Symbian specific API in PJLIB, pj_symbianos_set_connection_status(), to let PJLIB knows the connection status.
 - Added connection status checks before Symbian socket operations.
 - Added loop limiter in Symbian busy_sleep() to avoid the possibility of infinite loop.
 - Added sample of connection monitor in Symbian sample application (ua.cpp).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2481 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-02 15:48:45 +00:00
Nanang Izzuddin 0cb3b02b09 Added one new pjsua-lib API to get audio device stream instance, also added its usage sample for audio routing in symbian_ua.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2480 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-27 17:37:35 +00:00
Nanang Izzuddin 6d17d50017 Updated check condition in creating aud dev Symbian MDA.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2479 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-26 21:12:44 +00:00
Nanang Izzuddin 7c3659f39d Ticket #730: Fixed stream to convert units of jitter buffer params, from msecs (in stream info) to frame counts (for jitter buffer).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2477 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-24 11:29:40 +00:00
Benny Prijono 689f8a8b1c Fixed warning in audiodev, and link error in symbian mda audio driver
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2476 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-24 08:23:36 +00:00
Nanang Izzuddin a940b36960 - Updated Symbian bld.inf & MMP projects to use new audio framework.
- Updated audiodev.c to accomodate Symbian audio devs (APS & standard multimedia framework).
- Fixed compile warning & errors on Symbian.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2475 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-23 13:53:30 +00:00
Benny Prijono 2e9887997d - Disable EC in sound port when codec is used in sound device
- Added log verbosity in wmme_dev.c
- Tested aps-direct with WMME



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2474 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-23 10:21:33 +00:00
Benny Prijono eef2a878e3 - Added main doxygen documentations for audiodev
- Added include/pjmedia_audiodev.h
- Fix include sound.h in pjmedia.h



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2473 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-23 09:55:52 +00:00
Benny Prijono 69afbf1adb Compilation error in conf_switch due to last commit
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2472 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-23 07:58:54 +00:00
Benny Prijono 5fad7be60e Some testing in wmme_dev.c before changing it to use WMME callback interface
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2471 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-22 21:33:20 +00:00
Benny Prijono 2058f47d45 - Added pjmedia-audiodev/config.h
- Added a bit of doxygen documentation
- Added support for PCMA/PCMU codecs in wmme_dev.c



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2470 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-22 17:15:34 +00:00
Benny Prijono 96e74f3f8a - New convention about default audio device ID (now there is different ID for default capture/playback device. It should be backward compatible)
- Fixed crash if sound port is unable to open sound device
- Testing with the switchboard



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2469 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-22 12:00:12 +00:00
Benny Prijono 10454dc424 Updated libraries and applications to use the new Audio Device API
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2468 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-21 14:21:59 +00:00
Nanang Izzuddin 5efbdf2401 Added Symbian audio (Mda) to audio dev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2467 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-20 14:59:55 +00:00
Nanang Izzuddin 1b79114078 Added volume settings capability to Symbian APS audiodev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2466 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-19 19:13:49 +00:00
Nanang Izzuddin 1c1c7d47a1 Added Symbian S60 APS device in audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2465 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-19 17:19:46 +00:00
Benny Prijono 555139d839 Updated audio test
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2464 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-19 12:08:19 +00:00
Benny Prijono e3ebd55df7 Added audiotest and initial work on audio demo sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2463 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 20:14:15 +00:00
Nanang Izzuddin 418e0a4dff Fixed checking macro in pjsua-lib for Symbian APS audio routing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2462 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 18:33:01 +00:00
Nanang Izzuddin 452b66bf76 - Updated audio route API for Symbian APS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2461 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 15:23:47 +00:00
Nanang Izzuddin fe02a0684d - Added APS-direct sound device management into pjsua-lib (and removed it from apps).
- Fixed bug in conf_switch.c to always update ts_rx (even if port is not transmitting).
- Minor updates: 'fmt_id' to 'id', added transmitter_Cnt in conf port info, explicit mapping in Symbian audio APS impl from pjmedia_format_id to Symbian APS fourcc.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2460 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 14:28:49 +00:00
Benny Prijono 598b01dbdf Added WMME device in audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2459 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 13:55:03 +00:00
Benny Prijono 2cd64f895d Initial checkin for pjmedia_audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2458 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-17 19:57:48 +00:00
Benny Prijono f863ca3f77 Added bitrate and vad info in pjmedia_format, and changed audio route to use enumeration rather than boolean
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2457 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-17 15:19:45 +00:00
Nanang Izzuddin 83457d5937 Changed term 'fourcc' to 'format' and few minor fixes/updates.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2456 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-16 16:29:05 +00:00