blob: 14da268f35fef608e883d339b1e69c0dece048bd [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
tommi@webrtc.org851becd2012-04-04 14:57:19 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_VOICE_ENGINE_VOE_EXTERNAL_MEDIA_IMPL_H
12#define WEBRTC_VOICE_ENGINE_VOE_EXTERNAL_MEDIA_IMPL_H
13
pbos@webrtc.org956aa7e2013-05-21 13:52:32 +000014#include "webrtc/voice_engine/include/voe_external_media.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000015
pbos@webrtc.org956aa7e2013-05-21 13:52:32 +000016#include "webrtc/voice_engine/shared_data.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000017
18namespace webrtc {
19
tommi@webrtc.orga990e122012-04-26 15:28:22 +000020class VoEExternalMediaImpl : public VoEExternalMedia
niklase@google.com470e71d2011-07-07 08:21:25 +000021{
22public:
niklase@google.com470e71d2011-07-07 08:21:25 +000023 virtual int RegisterExternalMediaProcessing(
24 int channel,
25 ProcessingTypes type,
26 VoEMediaProcess& processObject);
27
28 virtual int DeRegisterExternalMediaProcessing(
29 int channel,
30 ProcessingTypes type);
31
niklase@google.com470e71d2011-07-07 08:21:25 +000032
roosa@google.com1b60ceb2012-12-12 23:00:29 +000033 virtual int GetAudioFrame(int channel, int desired_sample_rate_hz,
34 AudioFrame* frame);
35
36 virtual int SetExternalMixing(int channel, bool enable);
37
niklase@google.com470e71d2011-07-07 08:21:25 +000038protected:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000039 VoEExternalMediaImpl(voe::SharedData* shared);
niklase@google.com470e71d2011-07-07 08:21:25 +000040 virtual ~VoEExternalMediaImpl();
41
42private:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000043 voe::SharedData* shared_;
niklase@google.com470e71d2011-07-07 08:21:25 +000044};
45
46} // namespace webrtc
47
48#endif // WEBRTC_VOICE_ENGINE_VOE_EXTERNAL_MEDIA_IMPL_H