#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_SOURCE_H_
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_SOURCE_H_
+#include <bitset>
+
#include "webrtc/base/constructormagic.h"
+#include "webrtc/typedefs.h"
namespace webrtc {
namespace test {
// depleted, or if an error occurred.
virtual Packet* NextPacket() = 0;
+ virtual void FilterOutPayloadType(uint8_t payload_type) {
+ filter_.set(payload_type, true);
+ }
+
+ protected:
+ std::bitset<128> filter_; // Payload type is 7 bits in the RFC.
+
private:
DISALLOW_COPY_AND_ASSIGN(PacketSource);
};