Home
last modified time | relevance | path

Searched refs:DtmfBuffer (Results 1 – 8 of 8) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddtmf_buffer_unittest.cc56 TEST(DtmfBuffer, CreateAndDestroy) { in TEST() argument
57 DtmfBuffer* buffer = new DtmfBuffer(sample_rate_hz); in TEST()
62 TEST(DtmfBuffer, ParseEvent) { in TEST() argument
71 EXPECT_EQ(DtmfBuffer::kOK, in TEST()
72 DtmfBuffer::ParseEvent(timestamp, payload_ptr, sizeof(payload), in TEST()
80 EXPECT_EQ(DtmfBuffer::kPayloadTooShort, in TEST()
81 DtmfBuffer::ParseEvent(timestamp, payload_ptr, 3, &event)); in TEST()
84 TEST(DtmfBuffer, SimpleInsertAndGet) { in TEST() argument
91 DtmfBuffer buffer(sample_rate_hz); in TEST()
92 EXPECT_EQ(DtmfBuffer::kOK, buffer.InsertEvent(event)); in TEST()
[all …]
Ddtmf_buffer.cc26 DtmfBuffer::DtmfBuffer(int fs_hz) { in DtmfBuffer() function in webrtc::DtmfBuffer
30 DtmfBuffer::~DtmfBuffer() = default;
32 void DtmfBuffer::Flush() { in Flush()
69 int DtmfBuffer::ParseEvent(uint32_t rtp_timestamp, in ParseEvent()
100 int DtmfBuffer::InsertEvent(const DtmfEvent& event) { in InsertEvent()
121 bool DtmfBuffer::GetEvent(uint32_t current_timestamp, DtmfEvent* event) { in GetEvent()
190 size_t DtmfBuffer::Length() const { in Length()
194 bool DtmfBuffer::Empty() const { in Empty()
198 int DtmfBuffer::SetSampleRate(int fs_hz) { in SetSampleRate()
215 bool DtmfBuffer::SameEvent(const DtmfEvent& a, const DtmfEvent& b) { in SameEvent()
[all …]
Ddtmf_buffer.h47 class DtmfBuffer {
58 explicit DtmfBuffer(int fs_hz);
60 virtual ~DtmfBuffer();
110 RTC_DISALLOW_COPY_AND_ASSIGN(DtmfBuffer);
Dneteq.cc53 DtmfBuffer* dtmf_buffer = new DtmfBuffer(config.sample_rate_hz); in Create()
Dneteq_impl.h40 class DtmfBuffer; variable
67 DtmfBuffer* dtmf_buffer,
349 const rtc::scoped_ptr<DtmfBuffer> dtmf_buffer_ GUARDED_BY(crit_sect_);
Dneteq_impl.cc61 DtmfBuffer* dtmf_buffer, in NetEqImpl()
575 int ret = DtmfBuffer::ParseEvent( in InsertPacketInternal()
580 if (ret != DtmfBuffer::kOK) { in InsertPacketInternal()
584 if (dtmf_buffer_->InsertEvent(event) != DtmfBuffer::kOK) { in InsertPacketInternal()
Dneteq_impl_unittest.cc122 dtmf_buffer_ = new DtmfBuffer(config_.sample_rate_hz); in CreateInstance()
216 DtmfBuffer* dtmf_buffer_;
/external/webrtc/webrtc/modules/audio_coding/neteq/mock/
Dmock_dtmf_buffer.h20 class MockDtmfBuffer : public DtmfBuffer {
22 MockDtmfBuffer(int fs) : DtmfBuffer(fs) {} in MockDtmfBuffer()