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

Unified Diff: webrtc/audio/audio_receive_stream.h

Issue 2709723003: Initial implementation of RtpTransportControllerReceive and related interfaces.
Patch Set: Rename foo_audio --> audio_foo. Created 3 years, 8 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 | « no previous file | 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 20ed4613a7ede16d1ad3aa8897cb957c8c282c34..961794dfe5534bb01eee201cf73103d6252860ba 100644
--- a/webrtc/audio/audio_receive_stream.h
+++ b/webrtc/audio/audio_receive_stream.h
@@ -19,7 +19,9 @@
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/thread_checker.h"
#include "webrtc/call/audio_receive_stream.h"
+#include "webrtc/call/rtp_transport_controller_receive.h"
#include "webrtc/call/syncable.h"
+#include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h"
namespace webrtc {
class PacketRouter;
@@ -33,7 +35,8 @@ class ChannelProxy;
namespace internal {
class AudioSendStream;
-class AudioReceiveStream final : public webrtc::AudioReceiveStream,
+class AudioReceiveStream final : public webrtc::RtpPacketReceiverInterface,
+ public webrtc::AudioReceiveStream,
public AudioMixer::Source,
public Syncable {
public:
@@ -52,8 +55,8 @@ class AudioReceiveStream final : public webrtc::AudioReceiveStream,
void SetGain(float gain) override;
std::vector<webrtc::RtpSource> GetSources() const override;
- // TODO(nisse): Intended to be part of an RtpPacketReceiver interface.
- void OnRtpPacket(const RtpPacketReceived& packet);
+ // webrtc::RtpPacketReceiverInterface implementation
+ bool OnRtpPacketReceive(RtpPacketReceived* packet) override;
// AudioMixer::Source
AudioFrameInfo GetAudioFrameWithInfo(int sample_rate_hz,
@@ -80,6 +83,8 @@ class AudioReceiveStream final : public webrtc::AudioReceiveStream,
rtc::ThreadChecker worker_thread_checker_;
rtc::ThreadChecker module_process_thread_checker_;
const webrtc::AudioReceiveStream::Config config_;
+ RtpHeaderExtensionMap rtp_header_extensions_;
+
rtc::scoped_refptr<webrtc::AudioState> audio_state_;
std::unique_ptr<voe::ChannelProxy> channel_proxy_;
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698