Commit e78a360a authored by Svalorzen's avatar Svalorzen Committed by Gautier Pelloux-Prayer

Modified soundcard show command to show whether we are using files or not

parent d08bd4a4
......@@ -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",
linphonec_out("Playback device: %s\n",
linphonec_out("Capture device: %s\n",
return 1;
......@@ -5884,6 +5884,10 @@ void linphone_core_set_use_files(LinphoneCore *lc, bool_t 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;
......@@ -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()).
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