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

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

Issue 18052007: Use a direct include of time headers in media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 "media/audio/win/audio_unified_win.h" 5 #include "media/audio/win/audio_unified_win.h"
6 6
7 #include <Functiondiscoverykeys_devpkey.h> 7 #include <Functiondiscoverykeys_devpkey.h>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #ifndef NDEBUG 10 #ifndef NDEBUG
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #endif 13 #endif
14 #include "base/time.h" 14 #include "base/time/time.h"
15 #include "base/win/scoped_com_initializer.h" 15 #include "base/win/scoped_com_initializer.h"
16 #include "media/audio/win/audio_manager_win.h" 16 #include "media/audio/win/audio_manager_win.h"
17 #include "media/audio/win/avrt_wrapper_win.h" 17 #include "media/audio/win/avrt_wrapper_win.h"
18 #include "media/audio/win/core_audio_util_win.h" 18 #include "media/audio/win/core_audio_util_win.h"
19 19
20 using base::win::ScopedComPtr; 20 using base::win::ScopedComPtr;
21 using base::win::ScopedCOMInitializer; 21 using base::win::ScopedCOMInitializer;
22 using base::win::ScopedCoMem; 22 using base::win::ScopedCoMem;
23 23
24 // Smoothing factor in exponential smoothing filter where 0 < alpha < 1. 24 // Smoothing factor in exponential smoothing filter where 0 < alpha < 1.
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 void WASAPIUnifiedStream::StopAndJoinThread(HRESULT err) { 991 void WASAPIUnifiedStream::StopAndJoinThread(HRESULT err) {
992 CHECK(GetCurrentThreadId() == creating_thread_id_); 992 CHECK(GetCurrentThreadId() == creating_thread_id_);
993 DCHECK(audio_io_thread_.get()); 993 DCHECK(audio_io_thread_.get());
994 SetEvent(stop_streaming_event_.Get()); 994 SetEvent(stop_streaming_event_.Get());
995 audio_io_thread_->Join(); 995 audio_io_thread_->Join();
996 audio_io_thread_.reset(); 996 audio_io_thread_.reset();
997 HandleError(err); 997 HandleError(err);
998 } 998 }
999 999
1000 } // namespace media 1000 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/win/audio_low_latency_output_win_unittest.cc ('k') | media/audio/win/audio_unified_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698