OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 namespace webrtc { | 69 namespace webrtc { |
70 | 70 |
71 // ============================================================================ | 71 // ============================================================================ |
72 // Static methods | 72 // Static methods |
73 // ============================================================================ | 73 // ============================================================================ |
74 | 74 |
75 // ---------------------------------------------------------------------------- | 75 // ---------------------------------------------------------------------------- |
76 // AudioDeviceModule::Create() | 76 // AudioDeviceModule::Create() |
77 // ---------------------------------------------------------------------------- | 77 // ---------------------------------------------------------------------------- |
78 | 78 |
79 rtc::scoped_refptr<AudioDeviceModule> AudioDeviceModuleImpl::Create( | 79 rtc::scoped_refptr<AudioDeviceModule> AudioDeviceModule::Create( |
80 const int32_t id, | 80 const int32_t id, |
81 const AudioLayer audioLayer) { | 81 const AudioLayer audio_layer) { |
82 // Create the generic ref counted (platform independent) implementation. | 82 // Create the generic ref counted (platform independent) implementation. |
83 rtc::scoped_refptr<AudioDeviceModuleImpl> audioDevice( | 83 rtc::scoped_refptr<AudioDeviceModuleImpl> audioDevice( |
84 new rtc::RefCountedObject<AudioDeviceModuleImpl>(id, audioLayer)); | 84 new rtc::RefCountedObject<AudioDeviceModuleImpl>(id, audio_layer)); |
85 | 85 |
86 // Ensure that the current platform is supported. | 86 // Ensure that the current platform is supported. |
87 if (audioDevice->CheckPlatform() == -1) | 87 if (audioDevice->CheckPlatform() == -1) |
88 { | 88 { |
89 return nullptr; | 89 return nullptr; |
90 } | 90 } |
91 | 91 |
92 // Create the platform-dependent implementation. | 92 // Create the platform-dependent implementation. |
93 if (audioDevice->CreatePlatformSpecificObjects() == -1) | 93 if (audioDevice->CreatePlatformSpecificObjects() == -1) |
94 { | 94 { |
(...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1930 // ---------------------------------------------------------------------------- | 1930 // ---------------------------------------------------------------------------- |
1931 // PlatformAudioLayer | 1931 // PlatformAudioLayer |
1932 // ---------------------------------------------------------------------------- | 1932 // ---------------------------------------------------------------------------- |
1933 | 1933 |
1934 AudioDeviceModule::AudioLayer AudioDeviceModuleImpl::PlatformAudioLayer() const | 1934 AudioDeviceModule::AudioLayer AudioDeviceModuleImpl::PlatformAudioLayer() const |
1935 { | 1935 { |
1936 return _platformAudioLayer; | 1936 return _platformAudioLayer; |
1937 } | 1937 } |
1938 | 1938 |
1939 } // namespace webrtc | 1939 } // namespace webrtc |
OLD | NEW |