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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
OLDNEW
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_WAVEIN_INPUT_WIN_H_ 5 #ifndef MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_
6 #define MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_ 6 #define MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include <windows.h> 10 #include <windows.h>
11 #include <mmsystem.h> 11 #include <mmsystem.h>
12 12
13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
15 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
16 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
17 #include "base/win/scoped_handle.h" 16 #include "base/win/scoped_handle.h"
18 #include "media/audio/audio_io.h" 17 #include "media/audio/audio_io.h"
19 #include "media/audio/audio_parameters.h" 18 #include "media/audio/audio_parameters.h"
20 19
21 namespace media { 20 namespace media {
22 21
23 class AudioBus; 22 class AudioBus;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // we close so it can release its own resources. 92 // we close so it can release its own resources.
94 AudioManagerWin* manager_; 93 AudioManagerWin* manager_;
95 94
96 // We use the callback mostly to periodically give the recorded audio data. 95 // We use the callback mostly to periodically give the recorded audio data.
97 AudioInputCallback* callback_; 96 AudioInputCallback* callback_;
98 97
99 // The number of buffers of size |buffer_size_| each to use. 98 // The number of buffers of size |buffer_size_| each to use.
100 const int num_buffers_; 99 const int num_buffers_;
101 100
102 // The size in bytes of each audio buffer. 101 // The size in bytes of each audio buffer.
103 uint32 buffer_size_; 102 uint32_t buffer_size_;
104 103
105 // Channels, 1 or 2. 104 // Channels, 1 or 2.
106 const int channels_; 105 const int channels_;
107 106
108 // Contains the unique name of the selected endpoint device. 107 // Contains the unique name of the selected endpoint device.
109 // Note that AudioManagerBase::kDefaultDeviceId represents the default 108 // Note that AudioManagerBase::kDefaultDeviceId represents the default
110 // device role and is not a valid ID as such. 109 // device role and is not a valid ID as such.
111 std::string device_id_; 110 std::string device_id_;
112 111
113 // Windows native structure to encode the format parameters. 112 // Windows native structure to encode the format parameters.
(...skipping 14 matching lines...) Expand all
128 // Extra audio bus used for storage of deinterleaved data for the OnData 127 // Extra audio bus used for storage of deinterleaved data for the OnData
129 // callback. 128 // callback.
130 scoped_ptr<media::AudioBus> audio_bus_; 129 scoped_ptr<media::AudioBus> audio_bus_;
131 130
132 DISALLOW_COPY_AND_ASSIGN(PCMWaveInAudioInputStream); 131 DISALLOW_COPY_AND_ASSIGN(PCMWaveInAudioInputStream);
133 }; 132 };
134 133
135 } // namespace media 134 } // namespace media
136 135
137 #endif // MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_ 136 #endif // MEDIA_AUDIO_WIN_WAVEIN_INPUT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698