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

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

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Changed to record in AudioOutputResampler. Created 3 years, 10 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
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_PULSE_AUDIO_MANAGER_PULSE_H_ 5 #ifndef MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_
6 #define MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ 6 #define MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_
7 7
8 #include <pulse/pulseaudio.h> 8 #include <pulse/pulseaudio.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "media/audio/audio_manager_base.h" 14 #include "media/audio/audio_manager_base.h"
15 15
16 namespace media { 16 namespace media {
17 17
18 class MEDIA_EXPORT AudioManagerPulse : public AudioManagerBase { 18 class MEDIA_EXPORT AudioManagerPulse : public AudioManagerBase {
19 public: 19 public:
20 AudioManagerPulse( 20 AudioManagerPulse(
21 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 21 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
22 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, 22 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
23 AudioLogFactory* audio_log_factory); 23 AudioLogFactory* audio_log_factory,
24 CreateAudioFileWriterCallback create_audio_file_writer_callback);
24 25
25 bool Init(); 26 bool Init();
26 27
27 // Implementation of AudioManager. 28 // Implementation of AudioManager.
28 bool HasAudioOutputDevices() override; 29 bool HasAudioOutputDevices() override;
29 bool HasAudioInputDevices() override; 30 bool HasAudioInputDevices() override;
30 void ShowAudioInputSettings() override; 31 void ShowAudioInputSettings() override;
31 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; 32 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override;
32 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; 33 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override;
33 AudioParameters GetInputStreamParameters( 34 AudioParameters GetInputStreamParameters(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 AudioDeviceNames* devices_; 95 AudioDeviceNames* devices_;
95 int native_input_sample_rate_; 96 int native_input_sample_rate_;
96 int native_channel_count_; 97 int native_channel_count_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); 99 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse);
99 }; 100 };
100 101
101 } // namespace media 102 } // namespace media
102 103
103 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ 104 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698