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

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

Issue 2700983002: Remove the Windows Wave audio device implementation. (Closed)
Patch Set: Delete even more code and clean up _WIN32 usage Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_device/BUILD.gn ('k') | webrtc/modules/audio_device/include/audio_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/audio_device_impl.cc
diff --git a/webrtc/modules/audio_device/audio_device_impl.cc b/webrtc/modules/audio_device/audio_device_impl.cc
index ad643e9684688a5ae9cf641364bdd3425f31a817..5040189eebfac7de1cba8453acbde40514a1fcef 100644
--- a/webrtc/modules/audio_device/audio_device_impl.cc
+++ b/webrtc/modules/audio_device/audio_device_impl.cc
@@ -23,7 +23,6 @@
#include <string.h>
#if defined(_WIN32)
-#include "audio_device_wave_win.h"
#if defined(WEBRTC_WINDOWS_CORE_AUDIO_BUILD)
#include "audio_device_core_win.h"
#endif
@@ -200,17 +199,6 @@ int32_t AudioDeviceModuleImpl::CreatePlatformSpecificObjects() {
// Create the *Windows* implementation of the Audio Device
//
-#if defined(_WIN32)
- if ((audioLayer == kWindowsWaveAudio)
-#if !defined(WEBRTC_WINDOWS_CORE_AUDIO_BUILD)
- // Wave audio is default if Core audio is not supported in this build
- || (audioLayer == kPlatformDefaultAudio)
-#endif
- ) {
- // create *Windows Wave Audio* implementation
- ptrAudioDevice = new AudioDeviceWindowsWave(Id());
- LOG(INFO) << "Windows Wave APIs will be utilized";
- }
#if defined(WEBRTC_WINDOWS_CORE_AUDIO_BUILD)
if ((audioLayer == kWindowsCoreAudio) ||
(audioLayer == kPlatformDefaultAudio)) {
@@ -220,20 +208,9 @@ int32_t AudioDeviceModuleImpl::CreatePlatformSpecificObjects() {
// create *Windows Core Audio* implementation
ptrAudioDevice = new AudioDeviceWindowsCore(Id());
LOG(INFO) << "Windows Core Audio APIs will be utilized";
- } else {
- // create *Windows Wave Audio* implementation
- ptrAudioDevice = new AudioDeviceWindowsWave(Id());
- if (ptrAudioDevice != NULL) {
- // Core Audio was not supported => revert to Windows Wave instead
- _platformAudioLayer =
- kWindowsWaveAudio; // modify the state set at construction
- LOG(WARNING) << "Windows Core Audio is *not* supported => Wave APIs "
- "will be utilized instead";
- }
}
}
#endif // defined(WEBRTC_WINDOWS_CORE_AUDIO_BUILD)
-#endif // #if defined(_WIN32)
#if defined(WEBRTC_ANDROID)
// Create an Android audio manager.
« no previous file with comments | « webrtc/modules/audio_device/BUILD.gn ('k') | webrtc/modules/audio_device/include/audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698