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_WAVEOUT_OUTPUT_WIN_H_ | 5 #ifndef MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ |
6 #define MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ | 6 #define MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <mmsystem.h> | 9 #include <mmsystem.h> |
10 #include <mmreg.h> | 10 #include <mmreg.h> |
11 #include <stddef.h> | 11 #include <stddef.h> |
12 #include <stdint.h> | 12 #include <stdint.h> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/win/scoped_handle.h" | 17 #include "base/win/scoped_handle.h" |
18 #include "media/audio/audio_io.h" | 18 #include "media/audio/audio_io.h" |
19 #include "media/audio/audio_parameters.h" | 19 #include "media/base/audio_parameters.h" |
20 | 20 |
21 namespace media { | 21 namespace media { |
22 | 22 |
23 class AudioManagerWin; | 23 class AudioManagerWin; |
24 | 24 |
25 // Implements PCM audio output support for Windows using the WaveXXX API. | 25 // Implements PCM audio output support for Windows using the WaveXXX API. |
26 // While not as nice as the DirectSound-based API, it should work in all target | 26 // While not as nice as the DirectSound-based API, it should work in all target |
27 // operating systems regardless or DirectX version installed. It is known that | 27 // operating systems regardless or DirectX version installed. It is known that |
28 // in some machines WaveXXX based audio is better while in others DirectSound | 28 // in some machines WaveXXX based audio is better while in others DirectSound |
29 // is better. | 29 // is better. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // Container for retrieving data from AudioSourceCallback::OnMoreData(). | 135 // Container for retrieving data from AudioSourceCallback::OnMoreData(). |
136 scoped_ptr<AudioBus> audio_bus_; | 136 scoped_ptr<AudioBus> audio_bus_; |
137 | 137 |
138 DISALLOW_COPY_AND_ASSIGN(PCMWaveOutAudioOutputStream); | 138 DISALLOW_COPY_AND_ASSIGN(PCMWaveOutAudioOutputStream); |
139 }; | 139 }; |
140 | 140 |
141 } // namespace media | 141 } // namespace media |
142 | 142 |
143 #endif // MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ | 143 #endif // MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ |
OLD | NEW |