Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
e78a360a
Commit
e78a360a
authored
Feb 12, 2016
by
Svalorzen
Committed by
Gautier Pelloux-Prayer
Feb 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified soundcard show command to show whether we are using files or not
parent
d08bd4a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
10 deletions
+27
-10
commands.c
console/commands.c
+10
-6
linphonecore.c
coreapi/linphonecore.c
+8
-4
linphonecore.h
coreapi/linphonecore.h
+9
-0
No files found.
console/commands.c
View file @
e78a360a
...
...
@@ -1243,12 +1243,16 @@ static int lpc_cmd_soundcard(LinphoneCore *lc, char *args)
if
(
strcmp
(
arg1
,
"show"
)
==
0
)
{
if
(
linphone_core_get_use_files
(
lc
))
{
linphonec_out
(
"Using files.
\n
"
);
}
else
{
linphonec_out
(
"Ringer device: %s
\n
"
,
linphone_core_get_ringer_device
(
lc
));
linphonec_out
(
"Playback device: %s
\n
"
,
linphone_core_get_playback_device
(
lc
));
linphonec_out
(
"Capture device: %s
\n
"
,
linphone_core_get_capture_device
(
lc
));
}
return
1
;
}
...
...
coreapi/linphonecore.c
View file @
e78a360a
...
...
@@ -5884,6 +5884,10 @@ void linphone_core_set_use_files(LinphoneCore *lc, bool_t yesno){
lc
->
use_files
=
yesno
;
}
bool_t
linphone_core_get_use_files
(
LinphoneCore
*
lc
)
{
return
lc
->
use_files
;
}
const
char
*
linphone_core_get_play_file
(
const
LinphoneCore
*
lc
)
{
return
lc
->
play_file
;
}
...
...
coreapi/linphonecore.h
View file @
e78a360a
...
...
@@ -3685,6 +3685,15 @@ void linphone_core_show_video(LinphoneCore *lc, bool_t show);
**/
LINPHONE_PUBLIC
void
linphone_core_set_use_files
(
LinphoneCore
*
lc
,
bool_t
yesno
);
/**
* Gets whether linphone is currently streaming audio from and to files, rather
* than using the soundcard.
* @ingroup media_parameters
* @param[in] lc LinphoneCore object
* @return A boolean value representing whether linphone is streaming audio from and to files or not.
**/
LINPHONE_PUBLIC
bool_t
linphone_core_get_use_files
(
LinphoneCore
*
lc
);
/**
* Get the wav file that is played when putting somebody on hold,
* or when files are used instead of soundcards (see linphone_core_set_use_files()).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment