diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 696da6d39..2c8975066 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -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); + } +} diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 7f3d7f5ee..158d5cc9d 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -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*/ /** diff --git a/mediastreamer2 b/mediastreamer2 index 998cdbcc7..50e226c6b 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 998cdbcc79e6871b3029961d1d696bc04aedfefb +Subproject commit 50e226c6baaba262b68bbe1292397558f2d55407