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 #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 #include <stdint.h> | 12 #include <stdint.h> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "base/win/scoped_handle.h" | 18 #include "base/win/scoped_handle.h" |
19 #include "media/audio/audio_io.h" | 19 #include "media/audio/audio_io.h" |
20 #include "media/audio/audio_parameters.h" | 20 #include "media/base/audio_parameters.h" |
21 | 21 |
22 namespace media { | 22 namespace media { |
23 | 23 |
24 class AudioBus; | 24 class AudioBus; |
25 class AudioManagerWin; | 25 class AudioManagerWin; |
26 | 26 |
27 class PCMWaveInAudioInputStream : public AudioInputStream { | 27 class PCMWaveInAudioInputStream : public AudioInputStream { |
28 public: | 28 public: |
29 // The ctor takes all the usual parameters, plus |manager| which is the | 29 // The ctor takes all the usual parameters, plus |manager| which is the |
30 // the audio manager who is creating this object and |device_id| which | 30 // the audio manager who is creating this object and |device_id| which |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Extra audio bus used for storage of deinterleaved data for the OnData | 129 // Extra audio bus used for storage of deinterleaved data for the OnData |
130 // callback. | 130 // callback. |
131 scoped_ptr<media::AudioBus> audio_bus_; | 131 scoped_ptr<media::AudioBus> audio_bus_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(PCMWaveInAudioInputStream); | 133 DISALLOW_COPY_AND_ASSIGN(PCMWaveInAudioInputStream); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace media | 136 } // namespace media |
137 | 137 |
138 #endif // MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_ | 138 #endif // MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_ |
OLD | NEW |