From 358bc773993487aab874f77c8a8afed95fda7715 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 18 Aug 2015 16:49:03 +0200 Subject: [PATCH] Use LinphoneAudioRoute instead of MSAudioRoute in linphone to fix python's wrapper compilation --- coreapi/linphonecall.c | 4 ++-- coreapi/linphonecore.h | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 2c8975066..93670d2de 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -4138,8 +4138,8 @@ MSWebCam *linphone_call_get_video_device(const LinphoneCall *call) { } #endif -void linphone_call_set_audio_route(LinphoneCall *call, MSAudioRoute route) { +void linphone_call_set_audio_route(LinphoneCall *call, LinphoneAudioRoute route) { if (call != NULL && call->audiostream != NULL){ - audio_stream_set_audio_route(call->audiostream, route); + audio_stream_set_audio_route(call->audiostream, (MSAudioRoute) route); } } diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 158d5cc9d..c55bcfd6e 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -876,6 +876,19 @@ LINPHONE_PUBLIC void linphone_call_enable_echo_limiter(LinphoneCall *call, bool_ **/ LINPHONE_PUBLIC bool_t linphone_call_echo_limiter_enabled(const LinphoneCall *call); +/** + * Enum describing type of audio route. +**/ +enum _LinphoneAudioRoute { + LinphoneAudioRouteEarpiece = MSAudioRouteEarpiece, + LinphoneAudioRouteSpeaker = MSAudioRouteSpeaker +}; + +/** + * Enum describing type of audio route. +**/ +typedef enum _LinphoneAudioRoute LinphoneAudioRoute; + /** * Change the playback output device (currently only used for blackberry) * @param call @@ -883,7 +896,7 @@ LINPHONE_PUBLIC bool_t linphone_call_echo_limiter_enabled(const LinphoneCall *ca * * @ingroup call_control **/ -LINPHONE_PUBLIC void linphone_call_set_audio_route(LinphoneCall *call, MSAudioRoute route); +LINPHONE_PUBLIC void linphone_call_set_audio_route(LinphoneCall *call, LinphoneAudioRoute route); /*keep this in sync with mediastreamer2/msvolume.h*/