Ignore:
Timestamp:
Mar 11, 2011 6:57:24 AM (13 years ago)
Author:
ming
Message:

Fixed #1204: Support for refreshing audio device list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/audiodev.c

    r3262 r3438  
    492492} 
    493493 
     494/* API: Refresh the list of sound devices installed in the system. */ 
     495PJ_DEF(pj_status_t) pjmedia_aud_dev_refresh(void) 
     496{ 
     497    unsigned i; 
     498     
     499    for (i=0; i<aud_subsys.drv_cnt; ++i) { 
     500        struct driver *drv = &aud_subsys.drv[i]; 
     501         
     502        if (drv->f && drv->f->op->refresh) { 
     503            pj_status_t status = drv->f->op->refresh(drv->f); 
     504            if (status != PJ_SUCCESS) { 
     505                PJ_PERROR(4, (THIS_FILE, status, "Unable to refresh device " 
     506                                                 "list for %s", drv->name)); 
     507            } 
     508        } 
     509    } 
     510    return PJ_SUCCESS; 
     511} 
     512 
    494513/* API: Get the number of sound devices installed in the system. */ 
    495514PJ_DEF(unsigned) pjmedia_aud_dev_count(void) 
Note: See TracChangeset for help on using the changeset viewer.