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

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

Issue 9805001: Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix various compiler errors Created 8 years, 9 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 #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 <windows.h> 8 #include <windows.h>
9 #include <mmsystem.h> 9 #include <mmsystem.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/win/scoped_handle.h" 13 #include "base/win/scoped_handle.h"
14 #include "media/audio/audio_io.h" 14 #include "media/audio/audio_io.h"
15 #include "media/audio/audio_parameters.h" 15 #include "media/audio/audio_parameters.h"
16 16
17 namespace media {
18
17 class AudioManagerWin; 19 class AudioManagerWin;
18 20
19 class PCMWaveInAudioInputStream : public AudioInputStream { 21 class PCMWaveInAudioInputStream : public AudioInputStream {
20 public: 22 public:
21 // The ctor takes all the usual parameters, plus |manager| which is the 23 // The ctor takes all the usual parameters, plus |manager| which is the
22 // the audio manager who is creating this object and |device_id| which 24 // the audio manager who is creating this object and |device_id| which
23 // is provided by the operating system. 25 // is provided by the operating system.
24 PCMWaveInAudioInputStream(AudioManagerWin* manager, 26 PCMWaveInAudioInputStream(AudioManagerWin* manager,
25 const AudioParameters& params, 27 const AudioParameters& params,
26 int num_buffers, 28 int num_buffers,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 108
107 // Pointer to the first allocated audio buffer. This object owns it. 109 // Pointer to the first allocated audio buffer. This object owns it.
108 WAVEHDR* buffer_; 110 WAVEHDR* buffer_;
109 111
110 // An event that is signaled when the callback thread is ready to stop. 112 // An event that is signaled when the callback thread is ready to stop.
111 base::win::ScopedHandle stopped_event_; 113 base::win::ScopedHandle stopped_event_;
112 114
113 DISALLOW_COPY_AND_ASSIGN(PCMWaveInAudioInputStream); 115 DISALLOW_COPY_AND_ASSIGN(PCMWaveInAudioInputStream);
114 }; 116 };
115 117
118 } // namespace media
119
116 #endif // MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_ 120 #endif // MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698