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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_aud.c

    r5918 r5920  
    19481948    pjsua_var.snd_is_on = PJ_TRUE; 
    19491949 
     1950    /* Subscribe to audio device events */ 
     1951    pjmedia_event_subscribe(NULL, &call_media_on_event, NULL, 
     1952                    pjmedia_snd_port_get_snd_stream(pjsua_var.snd_port)); 
     1953 
    19501954    pj_log_pop_indent(); 
    19511955    return PJ_SUCCESS; 
     
    19841988                             "%s sound capture device", 
    19851989                             play_info.name, cap_info.name)); 
     1990 
     1991        /* Unsubscribe from audio device events */ 
     1992        pjmedia_event_unsubscribe(NULL, &call_media_on_event, NULL, strm); 
    19861993 
    19871994        pjmedia_snd_port_disconnect(pjsua_var.snd_port); 
Note: See TracChangeset for help on using the changeset viewer.