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

Unified Diff: webrtc/modules/audio_coding/neteq/tools/packet_source.cc

Issue 2290593002: Fix Chromium clang plugin warnings (Closed)
Patch Set: Created 4 years, 4 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/modules/audio_coding/neteq/tools/packet_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/tools/packet_source.cc
diff --git a/webrtc/modules/audio_coding/neteq/tools/audio_sink.cc b/webrtc/modules/audio_coding/neteq/tools/packet_source.cc
similarity index 57%
copy from webrtc/modules/audio_coding/neteq/tools/audio_sink.cc
copy to webrtc/modules/audio_coding/neteq/tools/packet_source.cc
index fb848bdbd9b53e62af0c2a8cfb7fb3668a8e75c5..d6cb37ef39cc9ea4af170d7d8520602ae515be6e 100644
--- a/webrtc/modules/audio_coding/neteq/tools/audio_sink.cc
+++ b/webrtc/modules/audio_coding/neteq/tools/packet_source.cc
@@ -8,14 +8,23 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/modules/audio_coding/neteq/tools/audio_sink.h"
+#include "webrtc/modules/audio_coding/neteq/tools/packet_source.h"
namespace webrtc {
namespace test {
-bool AudioSinkFork::WriteArray(const int16_t* audio, size_t num_samples) {
- return left_sink_->WriteArray(audio, num_samples) &&
- right_sink_->WriteArray(audio, num_samples);
+PacketSource::PacketSource() : use_ssrc_filter_(false), ssrc_(0) {}
+
+PacketSource::~PacketSource() = default;
+
+void PacketSource::FilterOutPayloadType(uint8_t payload_type) {
+ filter_.set(payload_type, true);
}
+
+void PacketSource::SelectSsrc(uint32_t ssrc) {
+ use_ssrc_filter_ = true;
+ ssrc_ = ssrc;
+}
+
} // namespace test
} // namespace webrtc
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tools/packet_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698