| OLD | NEW |
| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 webrtc::kTraceInfo; | 54 webrtc::kTraceInfo; |
| 55 | 55 |
| 56 // On Windows Vista and newer, Microsoft introduced the concept of "Default | 56 // On Windows Vista and newer, Microsoft introduced the concept of "Default |
| 57 // Communications Device". This means that there are two types of default | 57 // Communications Device". This means that there are two types of default |
| 58 // devices (old Wave Audio style default and Default Communications Device). | 58 // devices (old Wave Audio style default and Default Communications Device). |
| 59 // | 59 // |
| 60 // On Windows systems which only support Wave Audio style default, uses either | 60 // On Windows systems which only support Wave Audio style default, uses either |
| 61 // -1 or 0 to select the default device. | 61 // -1 or 0 to select the default device. |
| 62 #ifdef WIN32 | 62 #ifdef WIN32 |
| 63 const int kDefaultAudioDeviceId = -1; | 63 const int kDefaultAudioDeviceId = -1; |
| 64 #else | 64 #elif !defined(WEBRTC_IOS) |
| 65 const int kDefaultAudioDeviceId = 0; | 65 const int kDefaultAudioDeviceId = 0; |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 // Parameter used for NACK. | 68 // Parameter used for NACK. |
| 69 // This value is equivalent to 5 seconds of audio data at 20 ms per packet. | 69 // This value is equivalent to 5 seconds of audio data at 20 ms per packet. |
| 70 const int kNackMaxPackets = 250; | 70 const int kNackMaxPackets = 250; |
| 71 | 71 |
| 72 // Codec parameters for Opus. | 72 // Codec parameters for Opus. |
| 73 // draft-spittka-payload-rtp-opus-03 | 73 // draft-spittka-payload-rtp-opus-03 |
| 74 | 74 |
| (...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2542 } | 2542 } |
| 2543 } else { | 2543 } else { |
| 2544 LOG(LS_INFO) << "Stopping playout for channel #" << channel; | 2544 LOG(LS_INFO) << "Stopping playout for channel #" << channel; |
| 2545 engine()->voe()->base()->StopPlayout(channel); | 2545 engine()->voe()->base()->StopPlayout(channel); |
| 2546 } | 2546 } |
| 2547 return true; | 2547 return true; |
| 2548 } | 2548 } |
| 2549 } // namespace cricket | 2549 } // namespace cricket |
| 2550 | 2550 |
| 2551 #endif // HAVE_WEBRTC_VOICE | 2551 #endif // HAVE_WEBRTC_VOICE |
| OLD | NEW |