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 |
11 #include "webrtc/modules/audio_device/win/audio_mixer_manager_win.h" | 11 #include "webrtc/modules/audio_device/win/audio_mixer_manager_win.h" |
12 #include "webrtc/system_wrappers/interface/trace.h" | 12 #include "webrtc/system_wrappers/include/trace.h" |
13 | 13 |
14 #include <assert.h> // assert() | 14 #include <assert.h> // assert() |
15 #include <strsafe.h> // StringCchCopy(), StringCchCat(), StringCchPrintf() | 15 #include <strsafe.h> // StringCchCopy(), StringCchCat(), StringCchPrintf() |
16 | 16 |
17 #ifdef _WIN32 | 17 #ifdef _WIN32 |
18 // removes warning: "reinterpret_cast: conversion from 'UINT' to 'HMIXEROBJ' | 18 // removes warning: "reinterpret_cast: conversion from 'UINT' to 'HMIXEROBJ' |
19 // of greater size" | 19 // of greater size" |
20 #pragma warning(disable:4312) | 20 #pragma warning(disable:4312) |
21 #endif | 21 #endif |
22 | 22 |
(...skipping 2693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2716 if (WideCharToMultiByte(CP_UTF8, 0, src, -1, _str, kStrLen, 0, 0) == 0) | 2716 if (WideCharToMultiByte(CP_UTF8, 0, src, -1, _str, kStrLen, 0, 0) == 0) |
2717 memset(_str, 0, kStrLen); | 2717 memset(_str, 0, kStrLen); |
2718 } | 2718 } |
2719 return _str; | 2719 return _str; |
2720 #else | 2720 #else |
2721 return const_cast<char*>(src); | 2721 return const_cast<char*>(src); |
2722 #endif | 2722 #endif |
2723 } | 2723 } |
2724 | 2724 |
2725 } // namespace webrtc | 2725 } // namespace webrtc |
OLD | NEW |