Added linphone_call_set_audio_route in linphone API to call audio_stream_set_audio_route in ms2

This commit is contained in:
Sylvain Berfini 2015-08-13 17:37:40 +02:00
parent 6ef6e97043
commit ced2dc9316
3 changed files with 16 additions and 1 deletions

View file

@ -4137,3 +4137,9 @@ MSWebCam *linphone_call_get_video_device(const LinphoneCall *call) {
return call->cam;
}
#endif
void linphone_call_set_audio_route(LinphoneCall *call, MSAudioRoute route) {
if (call != NULL && call->audiostream != NULL){
audio_stream_set_audio_route(call->audiostream, route);
}
}

View file

@ -876,6 +876,15 @@ LINPHONE_PUBLIC void linphone_call_enable_echo_limiter(LinphoneCall *call, bool_
**/
LINPHONE_PUBLIC bool_t linphone_call_echo_limiter_enabled(const LinphoneCall *call);
/**
* Change the playback output device (currently only used for blackberry)
* @param call
* @param route the wanted audio route (earpiece, speaker, ...)
*
* @ingroup call_control
**/
LINPHONE_PUBLIC void linphone_call_set_audio_route(LinphoneCall *call, MSAudioRoute route);
/*keep this in sync with mediastreamer2/msvolume.h*/
/**

@ -1 +1 @@
Subproject commit 998cdbcc79e6871b3029961d1d696bc04aedfefb
Subproject commit 50e226c6baaba262b68bbe1292397558f2d55407