Changeset 3163 for pjproject


Ignore:
Timestamp:
May 10, 2010 9:05:19 AM (15 years ago)
Author:
bennylp
Message:

Ref #1068 (misc fixes): added facility to change device ID at run time in pjsystest

Location:
pjproject/trunk/pjsip-apps/src/pjsystest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsystest/systest.c

    r2991 r3163  
    104104static char textbuf[600]; 
    105105 
     106/* Device ID to test */ 
     107int systest_cap_dev_id = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV; 
     108int systest_play_dev_id = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 
     109 
    106110static void systest_perror(const char *title, pj_status_t status) 
    107111{ 
  • pjproject/trunk/pjsip-apps/src/pjsystest/systest.h

    r2991 r3163  
    2525 * Overrideable parameters 
    2626 */ 
    27 #define REC_DEV_ID                      PJMEDIA_AUD_DEFAULT_CAPTURE_DEV 
    28 #define PLAY_DEV_ID                     PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV 
     27#define REC_DEV_ID                      systest_cap_dev_id 
     28#define PLAY_DEV_ID                     systest_play_dev_id 
    2929//#define REC_DEV_ID                    5 
    3030//#define PLAY_DEV_ID                   5 
     
    7575void        systest_deinit(void); 
    7676 
     77/* Device ID to test */ 
     78extern int systest_cap_dev_id; 
     79extern int systest_play_dev_id; 
     80 
    7781/* Test item is used to record the test result */ 
    7882typedef struct test_item_t 
Note: See TracChangeset for help on using the changeset viewer.