Changeset 318 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- Mar 15, 2006 7:32:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r315 r318 754 754 } 755 755 756 /* Add NULL port to the bridge. */ 757 status = pjmedia_null_port_create( pjsua.pool, pjsua.clock_rate, 758 pjsua.clock_rate * 20 / 1000, 16, 759 &pjsua.null_port); 760 pjmedia_conf_add_port( pjsua.mconf, pjsua.pool, pjsua.null_port, 761 &pjsua.null_port->info.name, NULL ); 762 756 763 /* Create WAV file player if required: */ 757 764 758 765 if (pjsua.wav_file) { 759 pjmedia_port *port;760 766 pj_str_t port_name; 761 767 762 768 /* Create the file player port. */ 763 769 status = pjmedia_file_player_port_create( pjsua.pool, pjsua.wav_file, 764 0, -1, NULL, &port); 770 0, -1, NULL, 771 &pjsua.file_port); 765 772 if (status != PJ_SUCCESS) { 766 773 pjsua_perror(THIS_FILE, … … 771 778 772 779 /* Add port to conference bridge: */ 773 status = pjmedia_conf_add_port(pjsua.mconf, pjsua.pool, port, 780 status = pjmedia_conf_add_port(pjsua.mconf, pjsua.pool, 781 pjsua.file_port, 774 782 pj_cstr(&port_name, pjsua.wav_file), 775 783 &pjsua.wav_slot); … … 1050 1058 pjmedia_conf_destroy(pjsua.mconf); 1051 1059 1060 /* Destroy file port */ 1061 pjmedia_port_destroy(pjsua.file_port); 1062 1063 /* Destroy null port. */ 1064 pjmedia_port_destroy(pjsua.null_port); 1065 1066 1052 1067 /* Destroy sound framework: 1053 1068 * (this should be done in pjmedia_shutdown())
Note: See TracChangeset
for help on using the changeset viewer.