OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #ifndef WEBRTC_VOICE_ENGINE_VOE_EXTERNAL_MEDIA_H | 10 #ifndef WEBRTC_VOICE_ENGINE_VOE_EXTERNAL_MEDIA_H |
(...skipping 13 matching lines...) Expand all Loading... |
24 // be processed. The audio can be accessed in several different modes | 24 // be processed. The audio can be accessed in several different modes |
25 // given by the |type| parameter. The function should modify the | 25 // given by the |type| parameter. The function should modify the |
26 // original data and ensure that it is copied back to the |audio10ms| | 26 // original data and ensure that it is copied back to the |audio10ms| |
27 // array. The number of samples in the frame cannot be changed. | 27 // array. The number of samples in the frame cannot be changed. |
28 // The sampling frequency will depend upon the codec used. | 28 // The sampling frequency will depend upon the codec used. |
29 // If |isStereo| is true, audio10ms will contain 16-bit PCM data | 29 // If |isStereo| is true, audio10ms will contain 16-bit PCM data |
30 // samples in interleaved stereo format (L0,R0,L1,R1,...). | 30 // samples in interleaved stereo format (L0,R0,L1,R1,...). |
31 virtual void Process(int channel, | 31 virtual void Process(int channel, |
32 ProcessingTypes type, | 32 ProcessingTypes type, |
33 int16_t audio10ms[], | 33 int16_t audio10ms[], |
34 int length, | 34 size_t length, |
35 int samplingFreq, | 35 int samplingFreq, |
36 bool isStereo) = 0; | 36 bool isStereo) = 0; |
37 | 37 |
38 protected: | 38 protected: |
39 virtual ~VoEMediaProcess() {} | 39 virtual ~VoEMediaProcess() {} |
40 }; | 40 }; |
41 | 41 |
42 class WEBRTC_DLLEXPORT VoEExternalMedia { | 42 class WEBRTC_DLLEXPORT VoEExternalMedia { |
43 public: | 43 public: |
44 // Factory for the VoEExternalMedia sub-API. Increases an internal | 44 // Factory for the VoEExternalMedia sub-API. Increases an internal |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual int SetExternalMixing(int channel, bool enable) = 0; | 76 virtual int SetExternalMixing(int channel, bool enable) = 0; |
77 | 77 |
78 protected: | 78 protected: |
79 VoEExternalMedia() {} | 79 VoEExternalMedia() {} |
80 virtual ~VoEExternalMedia() {} | 80 virtual ~VoEExternalMedia() {} |
81 }; | 81 }; |
82 | 82 |
83 } // namespace webrtc | 83 } // namespace webrtc |
84 | 84 |
85 #endif // WEBRTC_VOICE_ENGINE_VOE_EXTERNAL_MEDIA_H | 85 #endif // WEBRTC_VOICE_ENGINE_VOE_EXTERNAL_MEDIA_H |
OLD | NEW |