Move webrtc/audio/audio_sink.h to webrtc/ and fix some dependencies.
webrtc/audio/audio_sink.h is used by voice engine, but webrtc/audio is depending on voice engine, resulting in a cyclic dependency (which we don't detect since we have that check turned off, see webrtc:4243). BUG=webrtc:4243, webrtc:5589 R=pbos@webrtc.org, perkj@webrtc.org, solenberg@webrtc.org TBR=tommi@webrtc.org Review URL: https://codereview.webrtc.org/1737593002 . Cr-Commit-Position: refs/heads/master@{#11766}
This commit is contained in:
parent
a5d8e4eef5
commit
99b345c4e5
@ -167,10 +167,12 @@ config("common_config") {
|
||||
|
||||
source_set("webrtc") {
|
||||
sources = [
|
||||
"audio_send_stream.h",
|
||||
"audio_state.h",
|
||||
"call.h",
|
||||
"config.h",
|
||||
"frame_callback.h",
|
||||
"transport.h",
|
||||
"video_decoder.h",
|
||||
"video_encoder.h",
|
||||
"video_frame.h",
|
||||
]
|
||||
|
||||
defines = []
|
||||
@ -228,12 +230,20 @@ if (!build_with_chromium) {
|
||||
|
||||
source_set("webrtc_common") {
|
||||
sources = [
|
||||
"audio_receive_stream.h",
|
||||
"audio_sink.h",
|
||||
"common_types.cc",
|
||||
"common_types.h",
|
||||
"config.cc",
|
||||
"config.h",
|
||||
"engine_configurations.h",
|
||||
"frame_callback.h",
|
||||
"stream.h",
|
||||
"transport.h",
|
||||
"typedefs.h",
|
||||
"video_receive_stream.h",
|
||||
"video_renderer.h",
|
||||
"video_send_stream.h",
|
||||
]
|
||||
|
||||
configs += [ ":common_config" ]
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
#include "webrtc/api/mediastreaminterface.h"
|
||||
#include "webrtc/api/notifier.h"
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/criticalsection.h"
|
||||
#include "webrtc/media/base/audiorenderer.h"
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
#include "webrtc/api/peerconnectioninterface.h"
|
||||
#include "webrtc/api/sctputils.h"
|
||||
#include "webrtc/api/webrtcsessiondescriptionfactory.h"
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/basictypes.h"
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/helpers.h"
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/audio/audio_state.h"
|
||||
#include "webrtc/audio/conversion.h"
|
||||
#include "webrtc/base/checks.h"
|
||||
|
||||
@ -18,7 +18,6 @@
|
||||
'audio/audio_receive_stream.h',
|
||||
'audio/audio_send_stream.cc',
|
||||
'audio/audio_send_stream.h',
|
||||
'audio/audio_sink.h',
|
||||
'audio/audio_state.cc',
|
||||
'audio/audio_state.h',
|
||||
'audio/conversion.h',
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#ifndef WEBRTC_AUDIO_AUDIO_SINK_H_
|
||||
#define WEBRTC_AUDIO_AUDIO_SINK_H_
|
||||
#ifndef WEBRTC_AUDIO_SINK_H_
|
||||
#define WEBRTC_AUDIO_SINK_H_
|
||||
|
||||
#if defined(WEBRTC_POSIX) && !defined(__STDC_FORMAT_MACROS)
|
||||
// Avoid conflict with format_macros.h.
|
||||
@ -50,4 +50,4 @@ class AudioSinkInterface {
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // WEBRTC_AUDIO_AUDIO_SINK_H_
|
||||
#endif // WEBRTC_AUDIO_SINK_H_
|
||||
@ -126,6 +126,7 @@ static_library("rtc_base_approved") {
|
||||
"event_tracer.h",
|
||||
"exp_filter.cc",
|
||||
"exp_filter.h",
|
||||
"format_macros.h",
|
||||
"md5.cc",
|
||||
"md5.h",
|
||||
"md5digest.cc",
|
||||
|
||||
@ -94,6 +94,7 @@
|
||||
'event_tracer.h',
|
||||
'exp_filter.cc',
|
||||
'exp_filter.h',
|
||||
'format_macros.h',
|
||||
'logging.cc',
|
||||
'logging.h',
|
||||
'md5.cc',
|
||||
|
||||
@ -12,12 +12,20 @@
|
||||
'target_name': 'webrtc_common',
|
||||
'type': 'static_library',
|
||||
'sources': [
|
||||
'audio_receive_stream.h',
|
||||
'audio_sink.h',
|
||||
'common_types.cc',
|
||||
'common_types.h',
|
||||
'config.h',
|
||||
'config.cc',
|
||||
'config.h',
|
||||
'engine_configurations.h',
|
||||
'frame_callback.h',
|
||||
'stream.h',
|
||||
'transport.h',
|
||||
'typedefs.h',
|
||||
'video_receive_stream.h',
|
||||
'video_renderer.h',
|
||||
'video_send_stream.h',
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/buffer.h"
|
||||
#include "webrtc/base/stringutils.h"
|
||||
#include "webrtc/media/base/audiorenderer.h"
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/gunit.h"
|
||||
#include "webrtc/media/base/rtputils.h"
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/arraysize.h"
|
||||
#include "webrtc/base/base64.h"
|
||||
#include "webrtc/base/byteorder.h"
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
#include "webrtc/pc/channel.h"
|
||||
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/bind.h"
|
||||
#include "webrtc/base/buffer.h"
|
||||
#include "webrtc/base/byteorder.h"
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/asyncudpsocket.h"
|
||||
#include "webrtc/base/criticalsection.h"
|
||||
#include "webrtc/base/network.h"
|
||||
|
||||
@ -60,9 +60,12 @@ source_set("video") {
|
||||
deps = [
|
||||
"..:rtc_event_log",
|
||||
"..:webrtc_common",
|
||||
"../base:rtc_base_approved",
|
||||
"../common_video",
|
||||
"../modules/bitrate_controller",
|
||||
"../modules/congestion_controller",
|
||||
"../modules/pacing",
|
||||
"../modules/remote_bitrate_estimator",
|
||||
"../modules/rtp_rtcp",
|
||||
"../modules/utility",
|
||||
"../modules/video_capture:video_capture_module",
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
'<(webrtc_root)/common.gyp:webrtc_common',
|
||||
'<(webrtc_root)/common_video/common_video.gyp:common_video',
|
||||
'<(webrtc_root)/modules/modules.gyp:bitrate_controller',
|
||||
'<(webrtc_root)/modules/modules.gyp:congestion_controller',
|
||||
'<(webrtc_root)/modules/modules.gyp:paced_sender',
|
||||
'<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
|
||||
'<(webrtc_root)/modules/modules.gyp:video_capture_module',
|
||||
|
||||
@ -99,6 +99,7 @@ source_set("voice_engine") {
|
||||
deps = [
|
||||
"..:rtc_event_log",
|
||||
"..:webrtc_common",
|
||||
"../base:rtc_base_approved",
|
||||
"../common_audio",
|
||||
"../modules/audio_coding",
|
||||
"../modules/audio_conference_mixer",
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/criticalsection.h"
|
||||
#include "webrtc/common_audio/resampler/include/push_resampler.h"
|
||||
#include "webrtc/common_types.h"
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "webrtc/audio/audio_sink.h"
|
||||
#include "webrtc/audio_sink.h"
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/voice_engine/channel.h"
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
'target_name': 'voice_engine',
|
||||
'type': 'static_library',
|
||||
'dependencies': [
|
||||
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
|
||||
'<(webrtc_root)/common.gyp:webrtc_common',
|
||||
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
|
||||
'<(webrtc_root)/modules/modules.gyp:audio_coding_module',
|
||||
|
||||
@ -110,18 +110,12 @@
|
||||
'target_name': 'webrtc',
|
||||
'type': 'static_library',
|
||||
'sources': [
|
||||
'audio_receive_stream.h',
|
||||
'audio_send_stream.h',
|
||||
'audio_state.h',
|
||||
'call.h',
|
||||
'config.h',
|
||||
'frame_callback.h',
|
||||
'stream.h',
|
||||
'transport.h',
|
||||
'video_receive_stream.h',
|
||||
'video_renderer.h',
|
||||
'video_send_stream.h',
|
||||
|
||||
'video_frame.h',
|
||||
'video_decoder.h',
|
||||
'video_encoder.h',
|
||||
'<@(webrtc_audio_sources)',
|
||||
'<@(webrtc_call_sources)',
|
||||
'<@(webrtc_video_sources)',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user