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

Side by Side Diff: media/audio/win/audio_low_latency_input_win.h

Issue 9965076: Revert 130180 - Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « media/audio/simple_sources_unittest.cc ('k') | media/audio/win/audio_low_latency_input_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Implementation of AudioInputStream for Windows using Windows Core Audio 5 // Implementation of AudioInputStream for Windows using Windows Core Audio
6 // WASAPI for low latency capturing. 6 // WASAPI for low latency capturing.
7 // 7 //
8 // Overview of operation: 8 // Overview of operation:
9 // 9 //
10 // - An object of WASAPIAudioInputStream is created by the AudioManager 10 // - An object of WASAPIAudioInputStream is created by the AudioManager
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "base/threading/platform_thread.h" 70 #include "base/threading/platform_thread.h"
71 #include "base/threading/simple_thread.h" 71 #include "base/threading/simple_thread.h"
72 #include "base/win/scoped_co_mem.h" 72 #include "base/win/scoped_co_mem.h"
73 #include "base/win/scoped_com_initializer.h" 73 #include "base/win/scoped_com_initializer.h"
74 #include "base/win/scoped_comptr.h" 74 #include "base/win/scoped_comptr.h"
75 #include "base/win/scoped_handle.h" 75 #include "base/win/scoped_handle.h"
76 #include "media/audio/audio_input_stream_impl.h" 76 #include "media/audio/audio_input_stream_impl.h"
77 #include "media/audio/audio_parameters.h" 77 #include "media/audio/audio_parameters.h"
78 #include "media/base/media_export.h" 78 #include "media/base/media_export.h"
79 79
80 namespace media {
81
82 class AudioManagerWin; 80 class AudioManagerWin;
83 81
84 // AudioInputStream implementation using Windows Core Audio APIs. 82 // AudioInputStream implementation using Windows Core Audio APIs.
85 class MEDIA_EXPORT WASAPIAudioInputStream 83 class MEDIA_EXPORT WASAPIAudioInputStream
86 : public AudioInputStreamImpl, 84 : public AudioInputStreamImpl,
87 public base::DelegateSimpleThread::Delegate, 85 public base::DelegateSimpleThread::Delegate,
88 NON_EXPORTED_BASE(public base::NonThreadSafe) { 86 NON_EXPORTED_BASE(public base::NonThreadSafe) {
89 public: 87 public:
90 // The ctor takes all the usual parameters, plus |manager| which is the 88 // The ctor takes all the usual parameters, plus |manager| which is the
91 // the audio manager who is creating this object. 89 // the audio manager who is creating this object.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // The audio engine will signal this event each time a buffer has been 203 // The audio engine will signal this event each time a buffer has been
206 // recorded. 204 // recorded.
207 base::win::ScopedHandle audio_samples_ready_event_; 205 base::win::ScopedHandle audio_samples_ready_event_;
208 206
209 // This event will be signaled when capturing shall stop. 207 // This event will be signaled when capturing shall stop.
210 base::win::ScopedHandle stop_capture_event_; 208 base::win::ScopedHandle stop_capture_event_;
211 209
212 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); 210 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream);
213 }; 211 };
214 212
215 } // namespace media
216
217 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ 213 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_
OLDNEW
« no previous file with comments | « media/audio/simple_sources_unittest.cc ('k') | media/audio/win/audio_low_latency_input_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698