From 43e8b0bbef045e527cedfd0edfd2c091c2376045 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 14 Nov 2011 11:31:11 +0100 Subject: [PATCH] read conference sample rate from config file --- coreapi/conference.c | 7 ++++--- mediastreamer2 | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/coreapi/conference.c b/coreapi/conference.c index 5992024ae..f72531b99 100644 --- a/coreapi/conference.c +++ b/coreapi/conference.c @@ -24,13 +24,14 @@ */ #include "private.h" +#include "lpconfig.h" #include "mediastreamer2/msvolume.h" -static void conference_check_init(LinphoneConference *ctx){ +static void conference_check_init(LinphoneConference *ctx, int samplerate){ if (ctx->conf==NULL){ MSAudioConferenceParams params; - params.samplerate=16000; + params.samplerate=samplerate; ctx->conf=ms_audio_conference_new(¶ms); } } @@ -137,7 +138,7 @@ int linphone_core_add_to_conference(LinphoneCore *lc, LinphoneCall *call){ ms_error("Already in conference"); return -1; } - conference_check_init(&lc->conf_ctx); + conference_check_init(&lc->conf_ctx, lp_config_get_int(lc->config, "sound","conference_rate",16000)); call->params.in_conference=TRUE; call->params.has_video=FALSE; call->params.media_encryption=LinphoneMediaEncryptionNone; diff --git a/mediastreamer2 b/mediastreamer2 index 4dd9f772c..4ee916b3f 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 4dd9f772c0fef23b5314b9118dae909904c49562 +Subproject commit 4ee916b3fcae0aba38a0d595079298242c9ac2cd