Index: webrtc/media/base/videosinkinterface.h |
diff --git a/webrtc/sound/linuxsoundsystem.cc b/webrtc/media/base/videosinkinterface.h |
similarity index 50% |
copy from webrtc/sound/linuxsoundsystem.cc |
copy to webrtc/media/base/videosinkinterface.h |
index c420ab57764e9b9b446057da5de4e54cf70f1431..9b8ba318623e6b43b2db726f7f84f099f956de34 100644 |
--- a/webrtc/sound/linuxsoundsystem.cc |
+++ b/webrtc/media/base/videosinkinterface.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
* |
* Use of this source code is governed by a BSD-style license |
* that can be found in the LICENSE file in the root of the source |
@@ -8,18 +8,20 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#include "webrtc/sound/linuxsoundsystem.h" |
- |
-#include "webrtc/sound/alsasoundsystem.h" |
-#include "webrtc/sound/pulseaudiosoundsystem.h" |
+#ifndef WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_ |
+#define WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_ |
namespace rtc { |
-const SoundSystemCreator kLinuxSoundSystemCreators[] = { |
-#ifdef HAVE_LIBPULSE |
- &PulseAudioSoundSystem::Create, |
-#endif |
- &AlsaSoundSystem::Create, |
+template <typename VideoFrameT> |
pbos-webrtc
2016/01/19 13:58:24
Do we need this to be a template? We'll just use t
nisse-webrtc
2016/01/19 14:12:18
I think some of the sink-like interfaces we want t
|
+class VideoSinkInterface { |
+ public: |
+ virtual void OnFrame(const VideoFrameT& frame) = 0; |
+ |
+ protected: |
+ ~VideoSinkInterface() {} |
}; |
} // namespace rtc |
+ |
+#endif // WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_ |