Changeset 343 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- Mar 20, 2006 5:42:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r322 r343 78 78 79 79 /* Default for media: */ 80 #if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 81 pjsua.clock_rate = 44100; 82 #else 80 83 pjsua.clock_rate = 8000; 84 #endif 81 85 pjsua.complexity = -1; 82 86 pjsua.quality = 4; 87 pjsua.has_wb = 0; 88 pjsua.has_uwb = 0; 83 89 84 90 … … 622 628 623 629 /* Register speex. */ 624 if (pjsua. clock_rate >= 16000)625 option &= ~ (PJMEDIA_SPEEX_NO_WB);626 if (pjsua. clock_rate >= 32000)627 option &= ~ (PJMEDIA_SPEEX_NO_UWB);630 if (pjsua.has_wb) 631 option &= ~PJMEDIA_SPEEX_NO_WB; 632 if (pjsua.has_uwb) 633 option &= ~PJMEDIA_SPEEX_NO_UWB; 628 634 629 635 status = pjmedia_codec_speex_init(pjsua.med_endpt, option, … … 690 696 691 697 /* Register speex. */ 692 if (pjsua. clock_rate >= 16000)698 if (pjsua.has_wb) 693 699 option &= ~(PJMEDIA_SPEEX_NO_WB); 694 if (pjsua. clock_rate >= 32000)700 if (pjsua.has_uwb) 695 701 option &= ~(PJMEDIA_SPEEX_NO_UWB); 696 702
Note: See TracChangeset
for help on using the changeset viewer.