Commit a149f366 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add getter API for play_file and record_file.

parent e7d685e9
......@@ -5747,6 +5747,10 @@ void linphone_core_set_use_files(LinphoneCore *lc, bool_t yesno){
lc->use_files=yesno;
}
const char * linphone_core_get_play_file(const LinphoneCore *lc) {
return lc->play_file;
}
/**
* Sets a wav file to be played when putting somebody on hold,
* or when files are used instead of soundcards (see linphone_core_set_use_files()).
......@@ -5769,6 +5773,9 @@ void linphone_core_set_play_file(LinphoneCore *lc, const char *file){
}
}
const char * linphone_core_get_record_file(const LinphoneCore *lc) {
return lc->rec_file;
}
/**
* Sets a wav file where incoming stream is to be recorded,
......
......@@ -3006,7 +3006,32 @@ void linphone_core_show_video(LinphoneCore *lc, bool_t show);
#define linphone_core_use_files(lc, yesno) linphone_core_set_use_files(lc, yesno)
/*play/record support: use files instead of soundcard*/
LINPHONE_PUBLIC void linphone_core_set_use_files(LinphoneCore *lc, bool_t yesno);
/**
* 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()).
*
* The file is a 16 bit linear wav file.
* @ingroup media_parameters
* @param[in] lc LinphoneCore object
* @return The path to the file that is played when putting somebody on hold.
*/
LINPHONE_PUBLIC const char * linphone_core_get_play_file(const LinphoneCore *lc);
LINPHONE_PUBLIC void linphone_core_set_play_file(LinphoneCore *lc, const char *file);
/**
* Get the wav file where incoming stream is recorded,
* when files are used instead of soundcards (see linphone_core_set_use_files()).
*
* This feature is different from call recording (linphone_call_params_set_record_file())
* The file is a 16 bit linear wav file.
* @ingroup media_parameters
* @param[in] lc LinphoneCore object
* @return The path to the file where incoming stream is recorded.
**/
LINPHONE_PUBLIC const char * linphone_core_get_record_file(const LinphoneCore *lc);
LINPHONE_PUBLIC void linphone_core_set_record_file(LinphoneCore *lc, const char *file);
LINPHONE_PUBLIC void linphone_core_play_dtmf(LinphoneCore *lc, char dtmf, int duration_ms);
......
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