| 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 <windows.h> | 5 #include <windows.h> |
| 6 #include <mmsystem.h> | 6 #include <mmsystem.h> |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
| 15 #include "base/win/scoped_com_initializer.h" | 15 #include "base/win/scoped_com_initializer.h" |
| 16 #include "media/audio/audio_io.h" | 16 #include "media/audio/audio_io.h" |
| 17 #include "media/audio/audio_manager_base.h" | 17 #include "media/audio/audio_manager_base.h" |
| 18 #include "media/audio/win/audio_low_latency_input_win.h" | 18 #include "media/audio/win/audio_low_latency_input_win.h" |
| 19 #include "media/audio/win/core_audio_util_win.h" | 19 #include "media/audio/win/core_audio_util_win.h" |
| 20 #include "media/base/seekable_buffer.h" | 20 #include "media/base/seekable_buffer.h" |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 WriteToFileAudioSink file_sink(file_name, aisw.bits_per_sample()); | 486 WriteToFileAudioSink file_sink(file_name, aisw.bits_per_sample()); |
| 487 VLOG(0) << ">> Speak into the default microphone while recording."; | 487 VLOG(0) << ">> Speak into the default microphone while recording."; |
| 488 ais->Start(&file_sink); | 488 ais->Start(&file_sink); |
| 489 base::PlatformThread::Sleep(TestTimeouts::action_timeout()); | 489 base::PlatformThread::Sleep(TestTimeouts::action_timeout()); |
| 490 ais->Stop(); | 490 ais->Stop(); |
| 491 VLOG(0) << ">> Recording has stopped."; | 491 VLOG(0) << ">> Recording has stopped."; |
| 492 ais.Close(); | 492 ais.Close(); |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace media | 495 } // namespace media |
| OLD | NEW |