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

Side by Side Diff: media/audio/alsa/alsa_input.h

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « media/audio/BUILD.gn ('k') | media/audio/alsa/alsa_output.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ALSA_ALSA_INPUT_H_ 5 #ifndef MEDIA_AUDIO_ALSA_ALSA_INPUT_H_
6 #define MEDIA_AUDIO_ALSA_ALSA_INPUT_H_ 6 #define MEDIA_AUDIO_ALSA_ALSA_INPUT_H_
7 7
8 #include <alsa/asoundlib.h> 8 #include <alsa/asoundlib.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "media/audio/agc_audio_stream.h" 18 #include "media/audio/agc_audio_stream.h"
19 #include "media/audio/audio_io.h" 19 #include "media/audio/audio_io.h"
20 #include "media/audio/audio_parameters.h" 20 #include "media/base/audio_parameters.h"
21 21
22 namespace media { 22 namespace media {
23 23
24 class AlsaWrapper; 24 class AlsaWrapper;
25 class AudioManagerBase; 25 class AudioManagerBase;
26 26
27 // Provides an input stream for audio capture based on the ALSA PCM interface. 27 // Provides an input stream for audio capture based on the ALSA PCM interface.
28 // This object is not thread safe and all methods should be invoked in the 28 // This object is not thread safe and all methods should be invoked in the
29 // thread that created the object. 29 // thread that created the object.
30 class AlsaPcmInputStream : public AgcAudioStream<AudioInputStream> { 30 class AlsaPcmInputStream : public AgcAudioStream<AudioInputStream> {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // NOTE: Weak pointers must be invalidated before all other member variables. 90 // NOTE: Weak pointers must be invalidated before all other member variables.
91 base::WeakPtrFactory<AlsaPcmInputStream> weak_factory_; 91 base::WeakPtrFactory<AlsaPcmInputStream> weak_factory_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(AlsaPcmInputStream); 93 DISALLOW_COPY_AND_ASSIGN(AlsaPcmInputStream);
94 }; 94 };
95 95
96 } // namespace media 96 } // namespace media
97 97
98 #endif // MEDIA_AUDIO_ALSA_ALSA_INPUT_H_ 98 #endif // MEDIA_AUDIO_ALSA_ALSA_INPUT_H_
OLDNEW
« no previous file with comments | « media/audio/BUILD.gn ('k') | media/audio/alsa/alsa_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698