Use LinphoneAudioRoute instead of MSAudioRoute in linphone to fix python's wrapper compilation

This commit is contained in:
Sylvain Berfini 2015-08-18 16:49:03 +02:00
parent 95921606bb
commit 358bc77399
2 changed files with 16 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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*/