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

Unified Diff: webrtc/voice_engine/channel.h

Issue 2378143004: Made AudioReceiveStream a mixer participant. (Closed)
Patch Set: Rebase after mixer interface changes. Created 4 years, 2 months 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/voice_engine/channel.h
diff --git a/webrtc/voice_engine/channel.h b/webrtc/voice_engine/channel.h
index fc123e384f750df1bb9ec394dbcc1cb42a7a692f..b137fea22deeb543b6d0ecf66a7a33b3805190dd 100644
--- a/webrtc/voice_engine/channel.h
+++ b/webrtc/voice_engine/channel.h
@@ -13,6 +13,7 @@
#include <memory>
+#include "webrtc/api/audio/audio_mixer.h"
#include "webrtc/api/call/audio_sink.h"
#include "webrtc/base/criticalsection.h"
#include "webrtc/base/optional.h"
@@ -378,6 +379,10 @@ class Channel
AudioFrame* audioFrame) override;
int32_t NeededFrequency(int32_t id) const override;
+ // From AudioMixer::Source
the sun 2016/10/13 12:16:56 total nit: comments should en with a "."
aleloi 2016/10/13 13:34:55 Done.
+ AudioMixer::Source::AudioFrameWithInfo GetAudioFrameWithInfo(
+ int sample_rate_hz);
+
// From FileCallback
void PlayNotification(int32_t id, uint32_t durationMs) override;
void RecordNotification(int32_t id, uint32_t durationMs) override;
@@ -474,6 +479,7 @@ class Channel
AudioLevel _outputAudioLevel;
bool _externalTransport;
AudioFrame _audioFrame;
+ AudioFrame mix_audio_frame_;
// Downsamples to the codec rate if necessary.
PushResampler<int16_t> input_resampler_;
std::unique_ptr<FilePlayer> input_file_player_;

Powered by Google App Engine
This is Rietveld 408576698