OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <mmsystem.h> | 10 #include <mmsystem.h> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Handle returned by RegisterWaitForSingleObject(). | 122 // Handle returned by RegisterWaitForSingleObject(). |
123 base::win::ScopedHandle waiting_handle_; | 123 base::win::ScopedHandle waiting_handle_; |
124 | 124 |
125 // Pointer to the allocated audio buffers, we allocate all buffers in one big | 125 // Pointer to the allocated audio buffers, we allocate all buffers in one big |
126 // chunk. This object owns them. | 126 // chunk. This object owns them. |
127 scoped_array<char> buffers_; | 127 scoped_array<char> buffers_; |
128 | 128 |
129 // Lock used to avoid the conflict when callbacks are called simultaneously. | 129 // Lock used to avoid the conflict when callbacks are called simultaneously. |
130 base::Lock lock_; | 130 base::Lock lock_; |
131 | 131 |
| 132 // Temporary here, for CHECK(). |
| 133 DWORD thread_id_; |
| 134 |
132 DISALLOW_COPY_AND_ASSIGN(PCMWaveOutAudioOutputStream); | 135 DISALLOW_COPY_AND_ASSIGN(PCMWaveOutAudioOutputStream); |
133 }; | 136 }; |
134 | 137 |
135 #endif // MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ | 138 #endif // MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ |
OLD | NEW |