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

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

Issue 9968054: Move media/audio files into media namespace (relanding) (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/win/audio_output_win_unittest.cc ('k') | media/audio/win/wavein_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 #ifndef MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_ 5 #ifndef MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_
6 #define MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_ 6 #define MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include <windows.h> 10 #include <windows.h>
11 #include <mmsystem.h> 11 #include <mmsystem.h>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/win/scoped_handle.h" 15 #include "base/win/scoped_handle.h"
16 #include "media/audio/audio_io.h" 16 #include "media/audio/audio_io.h"
17 #include "media/audio/audio_parameters.h" 17 #include "media/audio/audio_parameters.h"
18 18
19 namespace media {
20
19 class AudioManagerWin; 21 class AudioManagerWin;
20 22
21 class PCMWaveInAudioInputStream : public AudioInputStream { 23 class PCMWaveInAudioInputStream : public AudioInputStream {
22 public: 24 public:
23 // The ctor takes all the usual parameters, plus |manager| which is the 25 // The ctor takes all the usual parameters, plus |manager| which is the
24 // the audio manager who is creating this object and |device_id| which 26 // the audio manager who is creating this object and |device_id| which
25 // is provided by the operating system. 27 // is provided by the operating system.
26 PCMWaveInAudioInputStream(AudioManagerWin* manager, 28 PCMWaveInAudioInputStream(AudioManagerWin* manager,
27 const AudioParameters& params, 29 const AudioParameters& params,
28 int num_buffers, 30 int num_buffers,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 112
111 // Pointer to the first allocated audio buffer. This object owns it. 113 // Pointer to the first allocated audio buffer. This object owns it.
112 WAVEHDR* buffer_; 114 WAVEHDR* buffer_;
113 115
114 // An event that is signaled when the callback thread is ready to stop. 116 // An event that is signaled when the callback thread is ready to stop.
115 base::win::ScopedHandle stopped_event_; 117 base::win::ScopedHandle stopped_event_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(PCMWaveInAudioInputStream); 119 DISALLOW_COPY_AND_ASSIGN(PCMWaveInAudioInputStream);
118 }; 120 };
119 121
122 } // namespace media
123
120 #endif // MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_ 124 #endif // MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_
OLDNEW
« no previous file with comments | « media/audio/win/audio_output_win_unittest.cc ('k') | media/audio/win/wavein_input_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698