Changeset 531 for pjproject/trunk/pjsip-apps/src/samples/confbench.c
- Timestamp:
- Jun 20, 2006 3:39:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/confbench.c
r513 r531 18 18 */ 19 19 20 /* 20 21 /** 22 * \page page_pjmedia_samples_confbench_c Samples: Benchmarking Conference Bridge 23 * 21 24 * Benchmarking pjmedia (conference bridge+resample). For my use only, 22 25 * and it only works in Win32. 26 * 27 * This file is pjsip-apps/src/samples/confbench.c 28 * 29 * \includelineno confbench.c 23 30 */ 31 24 32 25 33 #include <pjmedia.h> … … 39 47 * the port. 40 48 */ 41 #define TEST_SET SMALL_SET42 #define HAS_RESAMPLE 149 #define TEST_SET LARGE_SET 50 #define HAS_RESAMPLE 0 43 51 44 52 … … 266 274 } 267 275 276 printf("Resampling is %s\n", (HAS_RESAMPLE?"active":"disabled")); 277 268 278 /* Create Null ports */ 279 printf("Creating %d null ports..\n", NULL_COUNT); 269 280 for (i=0; i<NULL_COUNT; ++i) { 270 281 status = pjmedia_null_port_create(pool, CLOCK_RATE, 1, SAMPLES_PER_FRAME*2, 16, &nulls[i]); … … 276 287 277 288 /* Create sine ports. */ 289 printf("Creating %d sine generator ports..\n", SINE_COUNT); 278 290 for (i=0; i<SINE_COUNT; ++i) { 279 291 unsigned j, slot; … … 305 317 306 318 /* Create idle ports */ 319 printf("Creating %d idle ports..\n", IDLE_COUNT); 307 320 for (i=0; i<IDLE_COUNT; ++i) { 308 321 pjmedia_port *dummy;
Note: See TracChangeset
for help on using the changeset viewer.