Ignore:
Timestamp:
Jul 13, 2011 3:05:22 AM (13 years ago)
Author:
bennylp
Message:

Fixed #1299: New callback to notify that sound device needs to be opened or closed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip-apps/src/pjsua/pjsua_app.c

    r3629 r3632  
    31353135 
    31363136/* 
     3137 * Notification on sound device operation. 
     3138 */ 
     3139static pj_status_t on_snd_dev_operation(int operation) 
     3140{ 
     3141    PJ_LOG(3,(THIS_FILE, "Turning sound device %s", (operation? "ON":"OFF"))); 
     3142    return PJ_SUCCESS; 
     3143} 
     3144 
     3145/* 
    31373146 * Print buddy list. 
    31383147 */ 
     
    50525061    app_config.cfg.cb.on_transport_state = &on_transport_state; 
    50535062    app_config.cfg.cb.on_ice_transport_error = &on_ice_transport_error; 
     5063    app_config.cfg.cb.on_snd_dev_operation = &on_snd_dev_operation; 
    50545064    app_config.log_cfg.cb = log_cb; 
    50555065 
Note: See TracChangeset for help on using the changeset viewer.