Changeset 864 for pjproject/trunk/pjmedia/src/pjmedia/conference.c
- Timestamp:
- Dec 26, 2006 2:27:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r838 r864 62 62 #define SIGNATURE PJMEDIA_PORT_SIGNATURE('C', 'O', 'N', 'F') 63 63 #define SIGNATURE_PORT PJMEDIA_PORT_SIGNATURE('C', 'O', 'N', 'P') 64 /* Normal level is hardcodec to 128 in all over places */ 64 65 #define NORMAL_LEVEL 128 65 66 #define SLOT_TYPE unsigned … … 1138 1139 1139 1140 /* Value must be from -128 to +127 */ 1140 PJ_ASSERT_RETURN(adj_level >= -128 && adj_level <= 127, PJ_EINVAL); 1141 /* Disabled, you can put more than +127, at your own risk: 1142 PJ_ASSERT_RETURN(adj_level >= -128 && adj_level <= 127, PJ_EINVAL); 1143 */ 1144 PJ_ASSERT_RETURN(adj_level >= -128, PJ_EINVAL); 1141 1145 1142 1146 conf_port = conf->ports[slot]; … … 1165 1169 1166 1170 /* Value must be from -128 to +127 */ 1167 PJ_ASSERT_RETURN(adj_level >= -128 && adj_level <= 127, PJ_EINVAL); 1171 /* Disabled, you can put more than +127,, at your own risk: 1172 PJ_ASSERT_RETURN(adj_level >= -128 && adj_level <= 127, PJ_EINVAL); 1173 */ 1174 PJ_ASSERT_RETURN(adj_level >= -128, PJ_EINVAL); 1168 1175 1169 1176 conf_port = conf->ports[slot]; … … 1365 1372 */ 1366 1373 itemp = input[j]; 1367 itemp = itemp * adj / NORMAL_LEVEL; 1374 /*itemp = itemp * adj / NORMAL_LEVEL; */ 1375 itemp = (itemp * adj) >> 7; 1368 1376 1369 1377 /* Clip the signal if it's too loud */ … … 1397 1405 1398 1406 /* Adjust the level */ 1399 itemp = itemp * adj_level / NORMAL_LEVEL; 1407 /*itemp = itemp * adj_level / NORMAL_LEVEL;*/ 1408 itemp = (itemp * adj_level) >> 7; 1400 1409 1401 1410 /* Clip the signal if it's too loud */ … … 1651 1660 */ 1652 1661 itemp = input[j]; 1653 itemp = itemp * adj / NORMAL_LEVEL; 1662 /*itemp = itemp * adj / NORMAL_LEVEL;*/ 1663 itemp = (itemp * adj) >> 7; 1654 1664 1655 1665 /* Clip the signal if it's too loud */
Note: See TracChangeset
for help on using the changeset viewer.