From ef88309a6e2b3193cf1658bf245de295900ba4fe Mon Sep 17 00:00:00 2001 From: Thiago Farina Date: Mon, 6 Apr 2015 10:36:41 +0000 Subject: [PATCH] Cleanup: Forward declare AudioFrame type in voiceprocess.h No need to include this header since the API is just taking a pointer to it. BUG=1092 TEST=./webrtc/build/gyp_webrtc && ninja -C out/Debug R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/44059004 Patch from Thiago Farina . Cr-Commit-Position: refs/heads/master@{#8928} --- talk/media/base/voiceprocessor.h | 3 ++- talk/media/webrtc/webrtcvoiceengine.cc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/talk/media/base/voiceprocessor.h b/talk/media/base/voiceprocessor.h index c2c33879c..33c252e17 100755 --- a/talk/media/base/voiceprocessor.h +++ b/talk/media/base/voiceprocessor.h @@ -28,12 +28,13 @@ #ifndef TALK_MEDIA_BASE_VOICEPROCESSOR_H_ #define TALK_MEDIA_BASE_VOICEPROCESSOR_H_ -#include "talk/media/base/audioframe.h" #include "webrtc/base/basictypes.h" #include "webrtc/base/sigslot.h" namespace cricket { +class AudioFrame; + enum MediaProcessorDirection { MPD_INVALID = 0, MPD_RX = 1 << 0, diff --git a/talk/media/webrtc/webrtcvoiceengine.cc b/talk/media/webrtc/webrtcvoiceengine.cc index 16e0ee811..592d4ac68 100644 --- a/talk/media/webrtc/webrtcvoiceengine.cc +++ b/talk/media/webrtc/webrtcvoiceengine.cc @@ -38,6 +38,7 @@ #include #include +#include "talk/media/base/audioframe.h" #include "talk/media/base/audiorenderer.h" #include "talk/media/base/constants.h" #include "talk/media/base/streamparams.h"