Changeset 6001


Ignore:
Timestamp:
May 23, 2019 1:57:48 PM (6 months ago)
Author:
riza
Message:

Re #2147 (misc): Avoid swig error caused by pjsua_snd_dev_id enum definition.

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/audiodev.h

    r5677 r6001  
    5050 * Device index constants. 
    5151 */ 
    52 typedef enum pjmedia_aud_dev_id 
    53 { 
    54     /**  
    55      * Constant to denote default capture device  
    56      */ 
    57     PJMEDIA_AUD_DEFAULT_CAPTURE_DEV = -1, 
    58  
    59     /**  
    60      * Constant to denote default playback device  
    61      */ 
    62     PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV = -2, 
    63  
    64     /** 
    65      * Constant to denote invalid device index. 
    66      */ 
    67     PJMEDIA_AUD_INVALID_DEV = -3 
    68 } pjmedia_aud_dev_id; 
    69  
     52 
     53/** 
     54 * Constant to denote default capture device 
     55 */ 
     56#define PJMEDIA_AUD_DEFAULT_CAPTURE_DEV  -1 
     57 
     58/** 
     59 * Constant to denote default playback device 
     60 */ 
     61#define PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV -2 
     62 
     63/** 
     64 * Constant to denote invalid device index. 
     65 */ 
     66#define PJMEDIA_AUD_INVALID_DEV     -3 
    7067 
    7168#define PJMEDIA_AUD_MAX_DRIVERS 16 
  • pjproject/trunk/pjsip-apps/src/swig/symbols.i

    r5993 r6001  
    287287} pjmedia_vid_dev_cap; 
    288288 
    289 typedef enum pjmedia_aud_dev_id 
    290 { 
    291   PJMEDIA_AUD_DEFAULT_CAPTURE_DEV = -1, 
    292   PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV = -2, 
    293   PJMEDIA_AUD_INVALID_DEV = -3 
    294 } pjmedia_aud_dev_id; 
    295  
    296289typedef enum pjmedia_aud_dev_route 
    297290{ 
  • pjproject/trunk/pjsip-apps/src/swig/symbols.lst

    r5993 r6001  
    1313pjmedia/vid_stream.h            pjmedia_vid_stream_rc_method 
    1414pjmedia-videodev/videodev.h     pjmedia_vid_dev_index pjmedia_vid_dev_std_index pjmedia_vid_dev_cap 
    15 pjmedia-audiodev/audiodev.h     pjmedia_aud_dev_id pjmedia_aud_dev_route pjmedia_aud_dev_cap 
     15pjmedia-audiodev/audiodev.h     pjmedia_aud_dev_route pjmedia_aud_dev_cap 
    1616pjmedia/wav_port.h              pjmedia_file_writer_option pjmedia_file_player_option 
    1717pjmedia/tonegen.h               pjmedia_tone_digit pjmedia_tone_digit_map pjmedia_tone_desc 
Note: See TracChangeset for help on using the changeset viewer.