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

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

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Using callbacks instead. 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_ALSA_AUDIO_MANAGER_ALSA_H_ 5 #ifndef MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_
6 #define MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ 6 #define MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_
7 7
8 #include <memory> 8 #include <memory>
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 "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "media/audio/audio_manager_base.h" 15 #include "media/audio/audio_manager_base.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 class AlsaWrapper; 19 class AlsaWrapper;
20 20
21 class MEDIA_EXPORT AudioManagerAlsa : public AudioManagerBase { 21 class MEDIA_EXPORT AudioManagerAlsa : public AudioManagerBase {
22 public: 22 public:
23 AudioManagerAlsa( 23 AudioManagerAlsa(
24 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 24 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
25 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, 25 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
26 AudioLogFactory* audio_log_factory); 26 AudioLogFactory* audio_log_factory,
27 CreateAudioFileWriterCallback create_audio_file_writer_callback);
27 28
28 static void ShowLinuxAudioInputSettings(); 29 static void ShowLinuxAudioInputSettings();
29 30
30 // Implementation of AudioManager. 31 // Implementation of AudioManager.
31 bool HasAudioOutputDevices() override; 32 bool HasAudioOutputDevices() override;
32 bool HasAudioInputDevices() override; 33 bool HasAudioInputDevices() override;
33 void ShowAudioInputSettings() override; 34 void ShowAudioInputSettings() override;
34 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; 35 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override;
35 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; 36 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override;
36 AudioParameters GetInputStreamParameters( 37 AudioParameters GetInputStreamParameters(
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const std::string& device_id); 95 const std::string& device_id);
95 96
96 std::unique_ptr<AlsaWrapper> wrapper_; 97 std::unique_ptr<AlsaWrapper> wrapper_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(AudioManagerAlsa); 99 DISALLOW_COPY_AND_ASSIGN(AudioManagerAlsa);
99 }; 100 };
100 101
101 } // namespace media 102 } // namespace media
102 103
103 #endif // MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ 104 #endif // MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698