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

Side by Side Diff: webrtc/modules/audio_device/ios/audio_device_ios.mm

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase Created 4 years, 2 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 @autoreleasepool { 77 @autoreleasepool {
78 LOG(LS_INFO) << " system name: " << ios::GetSystemName(); 78 LOG(LS_INFO) << " system name: " << ios::GetSystemName();
79 LOG(LS_INFO) << " system version 1(2): " << ios::GetSystemVersionAsString(); 79 LOG(LS_INFO) << " system version 1(2): " << ios::GetSystemVersionAsString();
80 LOG(LS_INFO) << " system version 2(2): " << ios::GetSystemVersion(); 80 LOG(LS_INFO) << " system version 2(2): " << ios::GetSystemVersion();
81 LOG(LS_INFO) << " device type: " << ios::GetDeviceType(); 81 LOG(LS_INFO) << " device type: " << ios::GetDeviceType();
82 LOG(LS_INFO) << " device name: " << ios::GetDeviceName(); 82 LOG(LS_INFO) << " device name: " << ios::GetDeviceName();
83 LOG(LS_INFO) << " process name: " << ios::GetProcessName(); 83 LOG(LS_INFO) << " process name: " << ios::GetProcessName();
84 LOG(LS_INFO) << " process ID: " << ios::GetProcessID(); 84 LOG(LS_INFO) << " process ID: " << ios::GetProcessID();
85 LOG(LS_INFO) << " OS version: " << ios::GetOSVersionString(); 85 LOG(LS_INFO) << " OS version: " << ios::GetOSVersionString();
86 LOG(LS_INFO) << " processing cores: " << ios::GetProcessorCount(); 86 LOG(LS_INFO) << " processing cores: " << ios::GetProcessorCount();
87 #if defined(__IPHONE_9_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0 87 #if defined(__IPHONE_9_0) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) \
88 && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0
88 LOG(LS_INFO) << " low power mode: " << ios::GetLowPowerModeEnabled(); 89 LOG(LS_INFO) << " low power mode: " << ios::GetLowPowerModeEnabled();
89 #endif 90 #endif
90 } 91 }
91 } 92 }
92 #endif // !defined(NDEBUG) 93 #endif // !defined(NDEBUG)
93 94
94 AudioDeviceIOS::AudioDeviceIOS() 95 AudioDeviceIOS::AudioDeviceIOS()
95 : audio_device_buffer_(nullptr), 96 : audio_device_buffer_(nullptr),
96 audio_unit_(nullptr), 97 audio_unit_(nullptr),
97 recording_(0), 98 recording_(0),
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 834
834 // All I/O should be stopped or paused prior to deactivating the audio 835 // All I/O should be stopped or paused prior to deactivating the audio
835 // session, hence we deactivate as last action. 836 // session, hence we deactivate as last action.
836 [session lockForConfiguration]; 837 [session lockForConfiguration];
837 UnconfigureAudioSession(); 838 UnconfigureAudioSession();
838 [session endWebRTCSession:nil]; 839 [session endWebRTCSession:nil];
839 [session unlockForConfiguration]; 840 [session unlockForConfiguration];
840 } 841 }
841 842
842 } // namespace webrtc 843 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/include/mock_audio_device.h ('k') | webrtc/modules/audio_device/ios/audio_device_unittest_ios.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698