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/media/engine/webrtcvoiceengine.cc

Issue 1715883002: Remove DeviceManager and DeviceInfo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 10 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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 webrtc::kTraceInfo; 53 webrtc::kTraceInfo;
54 54
55 // On Windows Vista and newer, Microsoft introduced the concept of "Default 55 // On Windows Vista and newer, Microsoft introduced the concept of "Default
56 // Communications Device". This means that there are two types of default 56 // Communications Device". This means that there are two types of default
57 // devices (old Wave Audio style default and Default Communications Device). 57 // devices (old Wave Audio style default and Default Communications Device).
58 // 58 //
59 // On Windows systems which only support Wave Audio style default, uses either 59 // On Windows systems which only support Wave Audio style default, uses either
60 // -1 or 0 to select the default device. 60 // -1 or 0 to select the default device.
61 #ifdef WIN32 61 #ifdef WIN32
62 const int kDefaultAudioDeviceId = -1; 62 const int kDefaultAudioDeviceId = -1;
63 #else 63 #elif !defined(WEBRTC_IOS)
64 const int kDefaultAudioDeviceId = 0; 64 const int kDefaultAudioDeviceId = 0;
65 #endif 65 #endif
66 66
67 // Parameter used for NACK. 67 // Parameter used for NACK.
68 // This value is equivalent to 5 seconds of audio data at 20 ms per packet. 68 // This value is equivalent to 5 seconds of audio data at 20 ms per packet.
69 const int kNackMaxPackets = 250; 69 const int kNackMaxPackets = 250;
70 70
71 // Codec parameters for Opus. 71 // Codec parameters for Opus.
72 // draft-spittka-payload-rtp-opus-03 72 // draft-spittka-payload-rtp-opus-03
73 73
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2546 } 2546 }
2547 } else { 2547 } else {
2548 LOG(LS_INFO) << "Stopping playout for channel #" << channel; 2548 LOG(LS_INFO) << "Stopping playout for channel #" << channel;
2549 engine()->voe()->base()->StopPlayout(channel); 2549 engine()->voe()->base()->StopPlayout(channel);
2550 } 2550 }
2551 return true; 2551 return true;
2552 } 2552 }
2553 } // namespace cricket 2553 } // namespace cricket
2554 2554
2555 #endif // HAVE_WEBRTC_VOICE 2555 #endif // HAVE_WEBRTC_VOICE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698