OLD | NEW |
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 Loading... |
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 |
OLD | NEW |