From c44da2d6d7f8a991cd8143f97acda117a4e0a422 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Fri, 11 Mar 2011 06:57:24 +0000 Subject: Fixed #1204: Support for refreshing audio device list. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3438 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia-audiodev/audiodev.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pjmedia/include/pjmedia-audiodev/audiodev.h') diff --git a/pjmedia/include/pjmedia-audiodev/audiodev.h b/pjmedia/include/pjmedia-audiodev/audiodev.h index ba28bc0f..1d1c39c0 100644 --- a/pjmedia/include/pjmedia-audiodev/audiodev.h +++ b/pjmedia/include/pjmedia-audiodev/audiodev.h @@ -545,6 +545,20 @@ PJ_DECL(pj_status_t) pjmedia_aud_unregister_factory(pjmedia_aud_dev_factory_create_func_ptr adf); +/** + * Refresh the list of sound devices installed in the system. This function + * will only refresh the list of audio device so all active audio streams will + * be unaffected. After refreshing the device list, application MUST make sure + * to update all index references to audio devices (i.e. all variables of type + * pjmedia_aud_dev_index) before calling any function that accepts audio device + * index as its parameter. + * + * @return PJ_SUCCESS on successful operation or the appropriate + * error code. + */ +PJ_DECL(pj_status_t) pjmedia_aud_dev_refresh(void); + + /** * Get the number of sound devices installed in the system. * -- cgit v1.2.3