mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 23:58:17 +00:00
commands.c: disable files usage if we are using "soundcard use <index>"
This commit is contained in:
parent
da9c8393fc
commit
35f2f5081a
1 changed files with 3 additions and 0 deletions
|
|
@ -1261,6 +1261,8 @@ static int lpc_cmd_soundcard(LinphoneCore *lc, char *args)
|
|||
return 1;
|
||||
}
|
||||
|
||||
linphone_core_use_files(lc,FALSE);
|
||||
|
||||
dev=linphone_core_get_sound_devices(lc);
|
||||
index=atoi(arg2); /* FIXME: handle not-a-number */
|
||||
for(i=0;dev[i]!=NULL;i++)
|
||||
|
|
@ -1276,6 +1278,7 @@ static int lpc_cmd_soundcard(LinphoneCore *lc, char *args)
|
|||
linphonec_out("No such sound device\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (strcmp(arg1, "capture")==0)
|
||||
{
|
||||
const char *devname=linphone_core_get_capture_device(lc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue