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

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

Issue 6602012: Adds method to invoke platform provided audio input UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 9 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/audio_output_proxy_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <map> 8 #include <map>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 AudioManagerLinux(); 21 AudioManagerLinux();
22 22
23 // Call before using a newly created AudioManagerLinux instance. 23 // Call before using a newly created AudioManagerLinux instance.
24 virtual void Init(); 24 virtual void Init();
25 25
26 // Implementation of AudioManager. 26 // Implementation of AudioManager.
27 virtual bool HasAudioOutputDevices(); 27 virtual bool HasAudioOutputDevices();
28 virtual bool HasAudioInputDevices(); 28 virtual bool HasAudioInputDevices();
29 virtual AudioOutputStream* MakeAudioOutputStream(AudioParameters params); 29 virtual AudioOutputStream* MakeAudioOutputStream(AudioParameters params);
30 virtual AudioInputStream* MakeAudioInputStream(AudioParameters params); 30 virtual AudioInputStream* MakeAudioInputStream(AudioParameters params);
31 virtual bool CanShowAudioInputSettings();
32 virtual void ShowAudioInputSettings();
31 33
32 virtual void MuteAll(); 34 virtual void MuteAll();
33 virtual void UnMuteAll(); 35 virtual void UnMuteAll();
34 36
35 virtual void ReleaseOutputStream(AlsaPcmOutputStream* stream); 37 virtual void ReleaseOutputStream(AlsaPcmOutputStream* stream);
36 38
37 protected: 39 protected:
38 virtual ~AudioManagerLinux(); 40 virtual ~AudioManagerLinux();
39 41
40 private: 42 private:
41 scoped_ptr<AlsaWrapper> wrapper_; 43 scoped_ptr<AlsaWrapper> wrapper_;
42 44
43 base::Lock lock_; 45 base::Lock lock_;
44 std::map<AlsaPcmOutputStream*, scoped_refptr<AlsaPcmOutputStream> > 46 std::map<AlsaPcmOutputStream*, scoped_refptr<AlsaPcmOutputStream> >
45 active_streams_; 47 active_streams_;
46 48
47 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); 49 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux);
48 }; 50 };
49 51
50 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ 52 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_proxy_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