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> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Handle returned by RegisterWaitForSingleObject(). | 123 // Handle returned by RegisterWaitForSingleObject(). |
124 HANDLE waiting_handle_; | 124 HANDLE waiting_handle_; |
125 | 125 |
126 // Pointer to the allocated audio buffers, we allocate all buffers in one big | 126 // Pointer to the allocated audio buffers, we allocate all buffers in one big |
127 // chunk. This object owns them. | 127 // chunk. This object owns them. |
128 scoped_array<char> buffers_; | 128 scoped_array<char> buffers_; |
129 | 129 |
130 // Lock used to avoid the conflict when callbacks are called simultaneously. | 130 // Lock used to avoid the conflict when callbacks are called simultaneously. |
131 base::Lock lock_; | 131 base::Lock lock_; |
132 | 132 |
| 133 // Container for retrieving data from AudioSourceCallback::OnMoreData(). |
| 134 scoped_ptr<AudioBus> audio_bus_; |
| 135 |
133 DISALLOW_COPY_AND_ASSIGN(PCMWaveOutAudioOutputStream); | 136 DISALLOW_COPY_AND_ASSIGN(PCMWaveOutAudioOutputStream); |
134 }; | 137 }; |
135 | 138 |
136 } // namespace media | 139 } // namespace media |
137 | 140 |
138 #endif // MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ | 141 #endif // MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ |
OLD | NEW |