Ignore:
Timestamp:
Dec 12, 2018 7:16:46 AM (10 months ago)
Author:
nanang
Message:

Close #2168: Added media event for audio device error.

File:
1 edited

Legend:

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

    r5843 r5920  
    8888     * RTCP-FB has been received. 
    8989     */ 
    90     PJMEDIA_EVENT_RX_RTCP_FB = PJMEDIA_FOURCC('R', 'T', 'F', 'B') 
     90    PJMEDIA_EVENT_RX_RTCP_FB = PJMEDIA_FOURCC('R', 'T', 'F', 'B'), 
     91 
     92    /** 
     93     * Audio device stopped on error. 
     94     */ 
     95    PJMEDIA_EVENT_AUD_DEV_ERROR = PJMEDIA_FOURCC('A', 'E', 'R', 'R') 
    9196 
    9297} pjmedia_event_type; 
     
    134139    pj_bool_t           cancel; 
    135140} pjmedia_event_wnd_closing_data; 
     141 
     142/** 
     143 * Additional data/parameters for audio device error event. 
     144 */ 
     145typedef struct pjmedia_event_aud_dev_err_data 
     146{ 
     147    /** The media direction that fails */ 
     148    pjmedia_dir              dir; 
     149 
     150    /** The audio device ID */ 
     151    pjmedia_aud_dev_index    id; 
     152 
     153    /** The error code */ 
     154    pj_status_t              status; 
     155} pjmedia_event_aud_dev_err_data; 
    136156 
    137157/** Additional parameters for window changed event. */ 
     
    216236        /** Keyframe missing event data */ 
    217237        pjmedia_event_keyframe_missing_data     keyframe_missing; 
     238 
     239        /** Audio device error event data */ 
     240        pjmedia_event_aud_dev_err_data          aud_dev_err; 
    218241 
    219242        /** Storage for user event data */ 
Note: See TracChangeset for help on using the changeset viewer.