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

Unified Diff: webrtc/modules/audio_coding/main/test/utility.cc

Issue 1353763002: Remove ACM AudioCodingFeedback callback object and derived classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@acm-remove-dtmf-api
Patch Set: Fix an error introduced in first patch set Created 5 years, 3 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/main/test/utility.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/main/test/utility.cc
diff --git a/webrtc/modules/audio_coding/main/test/utility.cc b/webrtc/modules/audio_coding/main/test/utility.cc
index e4e6dd4a351c8f3d97dba084a5b43d3017e703a2..949ca617b24c3f4ac943eba1b3637c22e6afcff5 100644
--- a/webrtc/modules/audio_coding/main/test/utility.cc
+++ b/webrtc/modules/audio_coding/main/test/utility.cc
@@ -279,32 +279,6 @@ bool FixedPayloadTypeCodec(const char* payloadName) {
return false;
}
-DTMFDetector::DTMFDetector() {
- for (int16_t n = 0; n < 1000; n++) {
- _toneCntr[n] = 0;
- }
-}
-
-DTMFDetector::~DTMFDetector() {
-}
-
-int32_t DTMFDetector::IncomingDtmf(const uint8_t digitDtmf,
- const bool /* toneEnded */) {
- fprintf(stdout, "%d-", digitDtmf);
- _toneCntr[digitDtmf]++;
- return 0;
-}
-
-void DTMFDetector::PrintDetectedDigits() {
- for (int16_t n = 0; n < 1000; n++) {
- if (_toneCntr[n] > 0) {
- fprintf(stdout, "%d %u msec, \n", n, _toneCntr[n] * 10);
- }
- }
- fprintf(stdout, "\n");
- return;
-}
-
void VADCallback::Reset() {
memset(_numFrameTypes, 0, sizeof(_numFrameTypes));
}
« no previous file with comments | « webrtc/modules/audio_coding/main/test/utility.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698