Commit 048394a9 authored by aymeric's avatar aymeric

use new API to reload sound cards and webcams

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@410 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent a4eade05
......@@ -4,7 +4,6 @@ EXPORTS
ms_init
ms_exit
ms_reload_snd_card
ms_filter_new
ms_filter_new_from_desc
......@@ -23,6 +22,7 @@ EXPORTS
ms_filter_set_notify_callback
ms_snd_card_new
ms_snd_card_manager_reload
ms_snd_card_manager_add_card
ms_snd_card_manager_register_desc
ms_snd_card_create_reader
......@@ -99,6 +99,7 @@ EXPORTS
ms_discover_mtu
ms_set_mtu
ms_web_cam_manager_reload
ms_web_cam_manager_get_default_cam
ms_web_cam_manager_get
ms_web_cam_manager_get_list
......
......@@ -167,16 +167,6 @@ void ms_exit(void);
struct _MSSndCardDesc;
/**
* This can be called when new sound cards have been added.
*
* Warning: It must NOT be called if one filter is currently created.
* You have to unlink, destroy everything before doing this.
*
* @param snd_desc A MSSndCardDesc description.
*/
void ms_reload_snd_card(struct _MSSndCardDesc *snd_desc);
void ms_sleep(int seconds);
/**
......
......@@ -551,30 +551,6 @@ void ms_exit(){
#endif
}
void ms_reload_snd_card(MSSndCardDesc *snd_desc){
MSSndCardManager *cm;
int i;
ms_snd_card_manager_destroy();
ms_message("Registering all soundcard handlers");
if (snd_desc!=NULL)
{
cm=ms_snd_card_manager_get();
if (cm!=NULL)
ms_snd_card_manager_register_desc(cm,snd_desc);
return;
}
/*register SndCardDesc */
cm=ms_snd_card_manager_get();
for (i=0;ms_snd_card_descs[i]!=NULL;i++){
ms_snd_card_manager_register_desc(cm,ms_snd_card_descs[i]);
}
return;
}
void ms_sleep(int seconds){
#ifdef WIN32
Sleep(seconds*1000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment