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

Unified Diff: webrtc/modules/audio_device/audio_device.cc

Issue 2214003002: GYP->GN of audio_device_tests. Remove dead code. Fix new warnings. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Exclude tests for ios. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_device/audio_device.cc
diff --git a/webrtc/modules/audio_device/audio_device.cc b/webrtc/modules/audio_device/audio_device.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a5f713a68a9c8b7500afaeef68ef136f5f009c67
--- /dev/null
+++ b/webrtc/modules/audio_device/audio_device.cc
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#include "webrtc/modules/audio_device/include/audio_device.h"
+
+#include "webrtc/modules/audio_device/include/audio_device_defines.h"
+
+namespace webrtc {
+
+#if defined(WEBRTC_IOS)
+// Some AudioDeviceModule implementations do not care about these functions, so
+// we provide default implementations.
+int AudioDeviceModule::GetPlayoutAudioParameters(
+ AudioParameters* params) const {
+ return -1;
+}
+int AudioDeviceModule::GetRecordAudioParameters(AudioParameters* params) const {
+ return -1;
+}
+#endif // WEBRTC_IOS
+} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698