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

Side by Side Diff: media/audio/pulse/pulse_input.h

Issue 15563004: Improved AGC update scheme for the audio backend in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added Start/Stop APIs for the AGC part Created 7 years, 6 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/mac/audio_low_latency_input_mac.cc ('k') | media/audio/pulse/pulse_input.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_PULSE_PULSE_INPUT_H_ 5 #ifndef MEDIA_AUDIO_PULSE_PULSE_INPUT_H_
6 #define MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ 6 #define MEDIA_AUDIO_PULSE_PULSE_INPUT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 #include "media/audio/agc_audio_stream.h"
11 #include "media/audio/audio_device_name.h" 12 #include "media/audio/audio_device_name.h"
12 #include "media/audio/audio_input_stream_impl.h"
13 #include "media/audio/audio_io.h" 13 #include "media/audio/audio_io.h"
14 #include "media/audio/audio_parameters.h" 14 #include "media/audio/audio_parameters.h"
15 15
16 struct pa_context; 16 struct pa_context;
17 struct pa_source_info; 17 struct pa_source_info;
18 struct pa_stream; 18 struct pa_stream;
19 struct pa_threaded_mainloop; 19 struct pa_threaded_mainloop;
20 20
21 namespace media { 21 namespace media {
22 22
23 class AudioManagerPulse; 23 class AudioManagerPulse;
24 class SeekableBuffer; 24 class SeekableBuffer;
25 25
26 class PulseAudioInputStream : public AudioInputStreamImpl { 26 class PulseAudioInputStream : public AgcAudioStream<AudioInputStream> {
27 public: 27 public:
28 PulseAudioInputStream(AudioManagerPulse* audio_manager, 28 PulseAudioInputStream(AudioManagerPulse* audio_manager,
29 const std::string& device_name, 29 const std::string& device_name,
30 const AudioParameters& params, 30 const AudioParameters& params,
31 pa_threaded_mainloop* mainloop, 31 pa_threaded_mainloop* mainloop,
32 pa_context* context); 32 pa_context* context);
33 33
34 virtual ~PulseAudioInputStream(); 34 virtual ~PulseAudioInputStream();
35 35
36 // Implementation of AudioInputStream. 36 // Implementation of AudioInputStream.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool context_state_changed_; 76 bool context_state_changed_;
77 77
78 base::ThreadChecker thread_checker_; 78 base::ThreadChecker thread_checker_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(PulseAudioInputStream); 80 DISALLOW_COPY_AND_ASSIGN(PulseAudioInputStream);
81 }; 81 };
82 82
83 } // namespace media 83 } // namespace media
84 84
85 #endif // MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ 85 #endif // MEDIA_AUDIO_PULSE_PULSE_INPUT_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_low_latency_input_mac.cc ('k') | media/audio/pulse/pulse_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698