Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: webrtc/voice_engine/include/voe_external_media.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/voice_engine/channel.cc ('k') | webrtc/voice_engine/mock/fake_voe_external_media.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel.cc ('k') | webrtc/voice_engine/mock/fake_voe_external_media.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698