Commit ced2dc93 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Added linphone_call_set_audio_route in linphone API to call audio_stream_set_audio_route in ms2

parent 6ef6e970
......@@ -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);
}
}
......@@ -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*/
/**
......
mediastreamer2 @ 50e226c6
Subproject commit 998cdbcc79e6871b3029961d1d696bc04aedfefb
Subproject commit 50e226c6baaba262b68bbe1292397558f2d55407
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