Ignore:
Timestamp:
May 5, 2010 4:23:27 AM (14 years ago)
Author:
ming
Message:

Implemented ticket #1065: audiodev register/unregister feature

File:
1 edited

Legend:

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

    r2506 r3159  
    4040 */ 
    4141 
    42 /**  
     42/** 
    4343 * Type for device index. 
    4444 */ 
     
    429429typedef struct pjmedia_aud_dev_factory pjmedia_aud_dev_factory; 
    430430 
     431/* typedef for factory creation function */ 
     432typedef pjmedia_aud_dev_factory* 
     433(*pjmedia_aud_dev_factory_create_func_ptr)(pj_pool_factory*); 
     434 
     435 
    431436/** 
    432437 * Get string info for the specified capability. 
     
    508513 */ 
    509514PJ_DECL(pj_status_t) pjmedia_aud_subsys_shutdown(void); 
     515 
     516 
     517/** 
     518 * Register a supported audio device factory to the audio subsystem. This 
     519 * function can only be called after calling #pjmedia_aud_subsys_init(). 
     520 * 
     521 * @param adf           The audio device factory. 
     522 * 
     523 * @return              PJ_SUCCESS on successful operation or the appropriate 
     524 *                      error code. 
     525 */ 
     526PJ_DECL(pj_status_t) 
     527pjmedia_aud_register_factory(pjmedia_aud_dev_factory_create_func_ptr adf); 
     528 
     529 
     530/** 
     531 * Unregister an audio device factory from the audio subsystem. This 
     532 * function can only be called after calling #pjmedia_aud_subsys_init(). 
     533 * Devices from this factory will be unlisted. If a device from this factory 
     534 * is currently in use, then the behavior is undefined. 
     535 * 
     536 * @param adf           The audio device factory. 
     537 * 
     538 * @return              PJ_SUCCESS on successful operation or the appropriate 
     539 *                      error code. 
     540 */ 
     541PJ_DECL(pj_status_t) 
     542pjmedia_aud_unregister_factory(pjmedia_aud_dev_factory_create_func_ptr adf); 
    510543 
    511544 
Note: See TracChangeset for help on using the changeset viewer.