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

Side by Side Diff: media/audio/linux/audio_manager_linux.h

Issue 8491044: Link things together and enable the device selection for linux and mac. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: rebase2 Created 9 years, 1 month 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/linux/alsa_output_unittest.cc ('k') | media/audio/linux/audio_manager_linux.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LINUX_AUDIO_MANAGER_LINUX_H_ 5 #ifndef MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ 6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "media/audio/audio_manager_base.h" 13 #include "media/audio/audio_manager_base.h"
14 14
15 class AlsaWrapper; 15 class AlsaWrapper;
16 16
17 class MEDIA_EXPORT AudioManagerLinux : public AudioManagerBase { 17 class MEDIA_EXPORT AudioManagerLinux : public AudioManagerBase {
18 public: 18 public:
19 AudioManagerLinux(); 19 AudioManagerLinux();
20 20
21 // Call before using a newly created AudioManagerLinux instance. 21 // Call before using a newly created AudioManagerLinux instance.
22 virtual void Init() OVERRIDE; 22 virtual void Init() OVERRIDE;
23 23
24 // Implementation of AudioManager. 24 // Implementation of AudioManager.
25 virtual bool HasAudioOutputDevices() OVERRIDE; 25 virtual bool HasAudioOutputDevices() OVERRIDE;
26 virtual bool HasAudioInputDevices() OVERRIDE; 26 virtual bool HasAudioInputDevices() OVERRIDE;
27 virtual AudioOutputStream* MakeAudioOutputStream( 27 virtual AudioOutputStream* MakeAudioOutputStream(
28 const AudioParameters& params) OVERRIDE; 28 const AudioParameters& params) OVERRIDE;
29 virtual AudioInputStream* MakeAudioInputStream(const AudioParameters& params) 29 virtual AudioInputStream* MakeAudioInputStream(
30 OVERRIDE; 30 const AudioParameters& params, const std::string& device_id) OVERRIDE;
31 virtual bool CanShowAudioInputSettings() OVERRIDE; 31 virtual bool CanShowAudioInputSettings() OVERRIDE;
32 virtual void ShowAudioInputSettings() OVERRIDE; 32 virtual void ShowAudioInputSettings() OVERRIDE;
33 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names) 33 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names)
34 OVERRIDE; 34 OVERRIDE;
35 35
36 virtual void MuteAll() OVERRIDE; 36 virtual void MuteAll() OVERRIDE;
37 virtual void UnMuteAll() OVERRIDE; 37 virtual void UnMuteAll() OVERRIDE;
38 38
39 virtual void ReleaseOutputStream(AudioOutputStream* stream); 39 virtual void ReleaseOutputStream(AudioOutputStream* stream);
40 40
(...skipping 19 matching lines...) Expand all
60 bool HasAnyAlsaAudioDevice(StreamType stream); 60 bool HasAnyAlsaAudioDevice(StreamType stream);
61 61
62 scoped_ptr<AlsaWrapper> wrapper_; 62 scoped_ptr<AlsaWrapper> wrapper_;
63 63
64 std::set<AudioOutputStream*> active_streams_; 64 std::set<AudioOutputStream*> active_streams_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); 66 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux);
67 }; 67 };
68 68
69 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ 69 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
OLDNEW
« no previous file with comments | « media/audio/linux/alsa_output_unittest.cc ('k') | media/audio/linux/audio_manager_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698