Changeset 3438 for pjproject/trunk/pjmedia/src/pjmedia-audiodev/audiodev.c
- Timestamp:
- Mar 11, 2011 6:57:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/audiodev.c
r3262 r3438 492 492 } 493 493 494 /* API: Refresh the list of sound devices installed in the system. */ 495 PJ_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 494 513 /* API: Get the number of sound devices installed in the system. */ 495 514 PJ_DEF(unsigned) pjmedia_aud_dev_count(void)
Note: See TracChangeset
for help on using the changeset viewer.