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

Unified Diff: webrtc/audio/audio_receive_stream.h

Issue 2378143004: Made AudioReceiveStream a mixer participant. (Closed)
Patch Set: Changed 'ssrc' into 'Ssrc' because of change upstream. 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
« no previous file with comments | « webrtc/audio/BUILD.gn ('k') | webrtc/audio/audio_receive_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/audio_receive_stream.h
diff --git a/webrtc/audio/audio_receive_stream.h b/webrtc/audio/audio_receive_stream.h
index 871d48d6b0101472e6db82b63eaba408c5b9f8cd..82c642a13708490afdaf4f90456a575e4d87cc00 100644
--- a/webrtc/audio/audio_receive_stream.h
+++ b/webrtc/audio/audio_receive_stream.h
@@ -13,6 +13,7 @@
#include <memory>
+#include "webrtc/api/audio/audio_mixer.h"
#include "webrtc/api/call/audio_receive_stream.h"
#include "webrtc/api/call/audio_state.h"
#include "webrtc/base/constructormagic.h"
@@ -30,7 +31,8 @@ class ChannelProxy;
namespace internal {
-class AudioReceiveStream final : public webrtc::AudioReceiveStream {
+class AudioReceiveStream final : public webrtc::AudioReceiveStream,
+ public AudioMixer::Source {
public:
AudioReceiveStream(CongestionController* congestion_controller,
const webrtc::AudioReceiveStream::Config& config,
@@ -52,6 +54,10 @@ class AudioReceiveStream final : public webrtc::AudioReceiveStream {
const PacketTime& packet_time);
const webrtc::AudioReceiveStream::Config& config() const;
+ // AudioMixer::Source
+ AudioFrameWithInfo GetAudioFrameWithInfo(int sample_rate_hz) override;
+ int Ssrc() override;
+
private:
VoiceEngine* voice_engine() const;
« no previous file with comments | « webrtc/audio/BUILD.gn ('k') | webrtc/audio/audio_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698