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

Side by Side Diff: media/audio/win/device_enumeration_win.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <MMDeviceAPI.h> 5 #include <MMDeviceAPI.h>
6 #include <mmsystem.h> 6 #include <mmsystem.h>
7 #include <Functiondiscoverykeys_devpkey.h> // MMDeviceAPI.h must come first 7 #include <Functiondiscoverykeys_devpkey.h> // MMDeviceAPI.h must come first
8 8
9 #include "media/audio/win/audio_manager_win.h" 9 #include "media/audio/win/audio_manager_win.h"
10 10
11 #include "base/basictypes.h"
12 #include "base/logging.h" 11 #include "base/logging.h"
13 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
14 #include "base/win/scoped_co_mem.h" 13 #include "base/win/scoped_co_mem.h"
15 #include "base/win/scoped_comptr.h" 14 #include "base/win/scoped_comptr.h"
16 #include "base/win/scoped_propvariant.h" 15 #include "base/win/scoped_propvariant.h"
17 16
18 using base::win::ScopedComPtr; 17 using base::win::ScopedComPtr;
19 using base::win::ScopedCoMem; 18 using base::win::ScopedCoMem;
20 19
21 // Taken from Mmddk.h. 20 // Taken from Mmddk.h.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 195
197 result = waveInGetDevCaps(i, &capabilities, sizeof(capabilities)); 196 result = waveInGetDevCaps(i, &capabilities, sizeof(capabilities));
198 if (result == MMSYSERR_NOERROR) 197 if (result == MMSYSERR_NOERROR)
199 return base::WideToUTF8(capabilities.szPname); 198 return base::WideToUTF8(capabilities.szPname);
200 } 199 }
201 200
202 return std::string(); 201 return std::string();
203 } 202 }
204 203
205 } // namespace media 204 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698