Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit fe29421

Browse files
daijhDuan, Xiande
authored andcommitted
fix multiple audio inputs issue
Change-Id: I0c975533b600cd0866d3b7171674c923aaad6f4f Reviewed-on: https://git-ccr-1.devtools.intel.com/gerrit/99532 Tested-by: webrtctest <[email protected]> Reviewed-by: Duan, Xiande <[email protected]>
1 parent 5a2e524 commit fe29421

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webrtc/modules/audio_conference_mixer/source/audio_conference_mixer_impl.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ void AudioConferenceMixerImpl::Process() {
285285
}
286286
}
287287

288+
uint32_t mixedFrameCount = 0;
288289
bool fireVadCallback = false;
289290
{
290291
rtc::CritScope cs(&_crit);
@@ -351,7 +352,6 @@ void AudioConferenceMixerImpl::Process() {
351352
if (i == mixList.size()) {
352353
mixedAudio = generalFrame;
353354
} else {
354-
mixedAudio = uniqueFrames[i];
355355
AudioFrameList::iterator it = workList.begin();
356356
advance(it, i);
357357
id = (*it).frame->id_;
@@ -374,6 +374,7 @@ void AudioConferenceMixerImpl::Process() {
374374
workList.erase(it);
375375
}
376376

377+
mixedAudio = uniqueFrames[mixedFrameCount++];
377378
mixedAudio->CopyFrom(*generalFrame);
378379
}
379380

@@ -415,7 +416,7 @@ void AudioConferenceMixerImpl::Process() {
415416
_id,
416417
*generalFrame,
417418
const_cast<const AudioFrame**>(uniqueFrames),
418-
mixList.size());
419+
mixedFrameCount);
419420
}
420421

421422
if(_vadReceiver != NULL && fireVadCallback) {

0 commit comments

Comments
 (0)