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

Side by Side Diff: media/audio/audio_input_controller.h

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « media/audio/audio_device_thread.cc ('k') | media/audio/audio_input_device.h » ('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) 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_AUDIO_INPUT_CONTROLLER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_
6 #define MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ 6 #define MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/atomicops.h" 9 #include "base/atomicops.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 // Sets the Automatic Gain Control (AGC) state of the input stream. 225 // Sets the Automatic Gain Control (AGC) state of the input stream.
226 // Changing the AGC state is not supported while recording is active. 226 // Changing the AGC state is not supported while recording is active.
227 virtual void SetAutomaticGainControl(bool enabled); 227 virtual void SetAutomaticGainControl(bool enabled);
228 228
229 // AudioInputCallback implementation. Threading details depends on the 229 // AudioInputCallback implementation. Threading details depends on the
230 // device-specific implementation. 230 // device-specific implementation.
231 virtual void OnData(AudioInputStream* stream, 231 virtual void OnData(AudioInputStream* stream,
232 const AudioBus* source, 232 const AudioBus* source,
233 uint32 hardware_delay_bytes, 233 uint32 hardware_delay_bytes,
234 double volume) OVERRIDE; 234 double volume) override;
235 virtual void OnError(AudioInputStream* stream) OVERRIDE; 235 virtual void OnError(AudioInputStream* stream) override;
236 236
237 bool SharedMemoryAndSyncSocketMode() const { return sync_writer_ != NULL; } 237 bool SharedMemoryAndSyncSocketMode() const { return sync_writer_ != NULL; }
238 238
239 protected: 239 protected:
240 friend class base::RefCountedThreadSafe<AudioInputController>; 240 friend class base::RefCountedThreadSafe<AudioInputController>;
241 241
242 // Internal state of the source. 242 // Internal state of the source.
243 enum State { 243 enum State {
244 CREATED, 244 CREATED,
245 RECORDING, 245 RECORDING,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 // Time when a low-latency stream is created. 372 // Time when a low-latency stream is created.
373 base::TimeTicks low_latency_create_time_; 373 base::TimeTicks low_latency_create_time_;
374 374
375 DISALLOW_COPY_AND_ASSIGN(AudioInputController); 375 DISALLOW_COPY_AND_ASSIGN(AudioInputController);
376 }; 376 };
377 377
378 } // namespace media 378 } // namespace media
379 379
380 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ 380 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « media/audio/audio_device_thread.cc ('k') | media/audio/audio_input_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698