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

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

Issue 9805001: Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « media/audio/audio_input_device_unittest.cc ('k') | media/audio/audio_input_stream_impl.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) 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_STREAM_IMPL_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_INPUT_STREAM_IMPL_H_
6 #define MEDIA_AUDIO_AUDIO_INPUT_STREAM_IMPL_H_ 6 #define MEDIA_AUDIO_AUDIO_INPUT_STREAM_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "media/audio/audio_io.h" 11 #include "media/audio/audio_io.h"
12 12
13 namespace media {
14
13 // AudioInputStreamImpl implements platform-independent parts of the 15 // AudioInputStreamImpl implements platform-independent parts of the
14 // AudioInputStream interface. Each platform dependent implementation 16 // AudioInputStream interface. Each platform dependent implementation
15 // should derive from this class. 17 // should derive from this class.
16 // TODO(henrika): we can probably break out more parts from our current 18 // TODO(henrika): we can probably break out more parts from our current
17 // AudioInputStream implementation and move out to this class. 19 // AudioInputStream implementation and move out to this class.
18 class MEDIA_EXPORT AudioInputStreamImpl : public AudioInputStream { 20 class MEDIA_EXPORT AudioInputStreamImpl : public AudioInputStream {
19 public: 21 public:
20 AudioInputStreamImpl(); 22 AudioInputStreamImpl();
21 virtual ~AudioInputStreamImpl(); 23 virtual ~AudioInputStreamImpl();
22 24
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 59
58 // Protects |agc_is_enabled_| and |volume_| . 60 // Protects |agc_is_enabled_| and |volume_| .
59 base::Lock lock_; 61 base::Lock lock_;
60 62
61 // Keeps track of the last time the microphone volume level was queried. 63 // Keeps track of the last time the microphone volume level was queried.
62 base::Time last_volume_update_time_; 64 base::Time last_volume_update_time_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(AudioInputStreamImpl); 66 DISALLOW_COPY_AND_ASSIGN(AudioInputStreamImpl);
65 }; 67 };
66 68
69 } // namespace media
70
67 #endif // MEDIA_AUDIO_AUDIO_INPUT_STREAM_IMPL_H_ 71 #endif // MEDIA_AUDIO_AUDIO_INPUT_STREAM_IMPL_H_
OLDNEW
« no previous file with comments | « media/audio/audio_input_device_unittest.cc ('k') | media/audio/audio_input_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698