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

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

Issue 6126002: Remove base/scoped_handle_win.h stub and fix up all callers to use the new location and namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 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
OLDNEW
1 // Copyright (c) 2010 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 8
8 #include <windows.h> 9 #include <windows.h>
9 #include <mmsystem.h> 10 #include <mmsystem.h>
10 #include <mmreg.h> 11 #include <mmreg.h>
11 12
12 #include "base/basictypes.h" 13 #include "base/basictypes.h"
13 #include "base/scoped_handle_win.h" 14 #include "base/win/scoped_handle.h"
14 #include "media/audio/audio_io.h" 15 #include "media/audio/audio_io.h"
15 #include "media/audio/audio_parameters.h" 16 #include "media/audio/audio_parameters.h"
16 17
17 class AudioManagerWin; 18 class AudioManagerWin;
18 19
19 // Implements PCM audio output support for Windows using the WaveXXX API. 20 // Implements PCM audio output support for Windows using the WaveXXX API.
20 // While not as nice as the DirectSound-based API, it should work in all target 21 // While not as nice as the DirectSound-based API, it should work in all target
21 // operating systems regardless or DirectX version installed. It is known that 22 // operating systems regardless or DirectX version installed. It is known that
22 // in some machines WaveXXX based audio is better while in others DirectSound 23 // in some machines WaveXXX based audio is better while in others DirectSound
23 // is better. 24 // is better.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Windows native structure to encode the format parameters. 104 // Windows native structure to encode the format parameters.
104 WAVEFORMATPCMEX format_; 105 WAVEFORMATPCMEX format_;
105 106
106 // Handle to the instance of the wave device. 107 // Handle to the instance of the wave device.
107 HWAVEOUT waveout_; 108 HWAVEOUT waveout_;
108 109
109 // Pointer to the first allocated audio buffer. This object owns it. 110 // Pointer to the first allocated audio buffer. This object owns it.
110 WAVEHDR* buffer_; 111 WAVEHDR* buffer_;
111 112
112 // An event that is signaled when the callback thread is ready to stop. 113 // An event that is signaled when the callback thread is ready to stop.
113 ScopedHandle stopped_event_; 114 base::win::ScopedHandle stopped_event_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(PCMWaveOutAudioOutputStream); 116 DISALLOW_COPY_AND_ASSIGN(PCMWaveOutAudioOutputStream);
116 }; 117 };
117 118
118 #endif // MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_ 119 #endif // MEDIA_AUDIO_WIN_WAVEOUT_OUTPUT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698