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

Side by Side Diff: webrtc/voice_engine/voice_engine_defines.h

Issue 1224163002: Update audio code to use size_t more correctly, webrtc/voice_engine/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Checkpoint Created 5 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 10
(...skipping 10 matching lines...) Expand all
21 #include "webrtc/modules/audio_processing/include/audio_processing.h" 21 #include "webrtc/modules/audio_processing/include/audio_processing.h"
22 22
23 // ---------------------------------------------------------------------------- 23 // ----------------------------------------------------------------------------
24 // Enumerators 24 // Enumerators
25 // ---------------------------------------------------------------------------- 25 // ----------------------------------------------------------------------------
26 26
27 namespace webrtc { 27 namespace webrtc {
28 28
29 // Internal buffer size required for mono audio, based on the highest sample 29 // Internal buffer size required for mono audio, based on the highest sample
30 // rate voice engine supports (10 ms of audio at 192 kHz). 30 // rate voice engine supports (10 ms of audio at 192 kHz).
31 static const int kMaxMonoDataSizeSamples = 1920; 31 static const size_t kMaxMonoDataSizeSamples = 1920;
32 32
33 // VolumeControl 33 // VolumeControl
34 enum { kMinVolumeLevel = 0 }; 34 enum { kMinVolumeLevel = 0 };
35 enum { kMaxVolumeLevel = 255 }; 35 enum { kMaxVolumeLevel = 255 };
36 // Min scale factor for per-channel volume scaling 36 // Min scale factor for per-channel volume scaling
37 const float kMinOutputVolumeScaling = 0.0f; 37 const float kMinOutputVolumeScaling = 0.0f;
38 // Max scale factor for per-channel volume scaling 38 // Max scale factor for per-channel volume scaling
39 const float kMaxOutputVolumeScaling = 10.0f; 39 const float kMaxOutputVolumeScaling = 10.0f;
40 // Min scale factor for output volume panning 40 // Min scale factor for output volume panning
41 const float kMinOutputVolumePanning = 0.0f; 41 const float kMinOutputVolumePanning = 0.0f;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 #define __cdecl 311 #define __cdecl
312 #define LPSOCKADDR struct sockaddr * 312 #define LPSOCKADDR struct sockaddr *
313 #define LPCSTR const char * 313 #define LPCSTR const char *
314 #define ULONG unsigned long 314 #define ULONG unsigned long
315 315
316 // Default device for Mac and iPhone 316 // Default device for Mac and iPhone
317 #define WEBRTC_VOICE_ENGINE_DEFAULT_DEVICE 0 317 #define WEBRTC_VOICE_ENGINE_DEFAULT_DEVICE 0
318 #endif // #ifdef WEBRTC_MAC 318 #endif // #ifdef WEBRTC_MAC
319 319
320 #endif // WEBRTC_VOICE_ENGINE_VOICE_ENGINE_DEFINES_H 320 #endif // WEBRTC_VOICE_ENGINE_VOICE_ENGINE_DEFINES_H
OLDNEW
« webrtc/voice_engine/utility.cc ('K') | « webrtc/voice_engine/voe_base_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698