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/include/pjsua-lib/pjsua.h

    r3609 r3632  
    962962                                   pj_status_t status, void *param); 
    963963 
     964    /** 
     965     * Callback when the sound device is about to be opened or closed. 
     966     * This callback will be called even when null sound device or no 
     967     * sound device is configured by the application (i.e. the 
     968     * #pjsua_set_null_snd_dev() and #pjsua_set_no_snd_dev() APIs). 
     969     * This API is mostly useful when the application wants to manage 
     970     * the sound device by itself (i.e. with #pjsua_set_no_snd_dev()), 
     971     * to get notified when it should open or close the sound device. 
     972     * 
     973     * @param operation The value will be set to 0 to signal that sound 
     974     *                  device is about to be closed, and 1 to be opened. 
     975     * 
     976     * @return          The callback must return PJ_SUCCESS at the moment. 
     977     */ 
     978    pj_status_t (*on_snd_dev_operation)(int operation); 
     979 
     980 
    964981} pjsua_callback; 
    965982 
Note: See TracChangeset for help on using the changeset viewer.