mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 14:18:07 +00:00
Add getter API for play_file and record_file.
This commit is contained in:
parent
e7d685e9b0
commit
a149f36615
2 changed files with 32 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue