From: Anthony Minessale Date: Tue, 9 Dec 2014 02:36:25 +0000 (-0600) Subject: factor channel count into flush len X-Git-Tag: v1.4.15^2~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ca609e6378ae0ec141e214f7719d204f8a24059;p=thirdparty%2Ffreeswitch.git factor channel count into flush len --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 1dfbe311d3..b3a5fd525e 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -4277,7 +4277,7 @@ static void *SWITCH_THREAD_FUNC conference_loop_input(switch_thread_t *thread, v switch_channel_audio_sync(channel); - flush_len = switch_samples_per_packet(member->conference->rate, member->conference->interval) * 6; + flush_len = switch_samples_per_packet(member->conference->rate, member->conference->interval) * member->conference->channels * 10; /* As long as we have a valid read, feed that data into an input buffer where the conference thread will take it and mux it with any audio from other channels. */