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

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

Issue 9147039: Add CHECKs to find root cause of Windows-only crash. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « no previous file | media/audio/win/waveout_output_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/audio/win/waveout_output_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698