]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
factor channel count into flush len
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 9 Dec 2014 02:36:25 +0000 (20:36 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 9 Dec 2014 02:36:25 +0000 (20:36 -0600)
src/mod/applications/mod_conference/mod_conference.c

index 1dfbe311d3a1719f40ff7805768a8ec640cafc8d..b3a5fd525ef43c4eef9e8f242d2d410b07c4b492 100644 (file)
@@ -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. */