Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: webrtc/modules/audio_mixer/audio_mixer_impl.cc

Issue 2436033002: Replace AudioConferenceMixer with AudioMixer. (Closed)
Patch Set: Correct struct member names, less code duplication in tests, minor fixes. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_mixer/audio_mixer_impl.cc
diff --git a/webrtc/modules/audio_mixer/audio_mixer_impl.cc b/webrtc/modules/audio_mixer/audio_mixer_impl.cc
index 4bd96cd72f5a72657a80c0f2639f726dec294758..f6bb23294682748215505cc28240f3ac7eb0d09a 100644
--- a/webrtc/modules/audio_mixer/audio_mixer_impl.cc
+++ b/webrtc/modules/audio_mixer/audio_mixer_impl.cc
@@ -380,4 +380,13 @@ bool AudioMixerImpl::GetAudioSourceMixabilityStatusForTest(
LOG(LS_ERROR) << "Audio source unknown";
return false;
}
+
+bool AudioMixerImpl::GetSourcePresenceStatusForTest(
+ AudioMixerImpl::Source* audio_source) const {
+ RTC_DCHECK_RUNS_SERIALIZED(&race_checker_);
+ rtc::CritScope lock(&crit_);
+
+ const auto iter = FindSourceInList(audio_source, &audio_source_list_);
+ return iter != audio_source_list_.end();
+}
} // namespace webrtc
« webrtc/audio/audio_transport_proxy.cc ('K') | « webrtc/modules/audio_mixer/audio_mixer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698