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

Side by Side Diff: media/audio/audio_manager.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 | « no previous file | media/audio/audio_manager_base.h » ('j') | media/audio/audio_manager_base.h » ('J')
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_AUDIO_MANAGER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "media/audio/audio_parameters.h" 10 #include "media/audio/audio_parameters.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // Returns true if the OS reports existence of audio recording devices. This 28 // Returns true if the OS reports existence of audio recording devices. This
29 // does not guarantee that the existing devices support all formats and 29 // does not guarantee that the existing devices support all formats and
30 // sample rates. 30 // sample rates.
31 virtual bool HasAudioInputDevices() = 0; 31 virtual bool HasAudioInputDevices() = 0;
32 32
33 // Returns a human readable string for the model/make of the active audio 33 // Returns a human readable string for the model/make of the active audio
34 // input device for this computer. 34 // input device for this computer.
35 virtual string16 GetAudioInputDeviceModel() = 0; 35 virtual string16 GetAudioInputDeviceModel() = 0;
36 36
37 // Returns true if the platform specific audio input settings UI is known
38 // and can be shown.
39 virtual bool CanShowAudioInputSettings() = 0;
40
41 // Opens the platform default audio input settings UI.
42 // Note: This could invoke an external application/preferences pane, so
43 // ideally must not be called from the UI thread or other time sensitive
44 // threads to avoid blocking the rest of the application.
45 virtual void ShowAudioInputSettings() = 0;
46
37 // Factory for all the supported stream formats. |params| defines parameters 47 // Factory for all the supported stream formats. |params| defines parameters
38 // of the audio stream to be created. 48 // of the audio stream to be created.
39 // 49 //
40 // |params.sample_per_packet| is the requested buffer allocation which the 50 // |params.sample_per_packet| is the requested buffer allocation which the
41 // audio source thinks it can usually fill without blocking. Internally two 51 // audio source thinks it can usually fill without blocking. Internally two
42 // or three buffers are created, one will be locked for playback and one will 52 // or three buffers are created, one will be locked for playback and one will
43 // be ready to be filled in the call to AudioSourceCallback::OnMoreData(). 53 // be ready to be filled in the call to AudioSourceCallback::OnMoreData().
44 // 54 //
45 // Returns NULL if the combination of the parameters is not supported, or if 55 // Returns NULL if the combination of the parameters is not supported, or if
46 // we have reached some other platform specific limit. 56 // we have reached some other platform specific limit.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void Cleanup() = 0; 107 virtual void Cleanup() = 0;
98 108
99 private: 109 private:
100 static void Destroy(void*); 110 static void Destroy(void*);
101 111
102 // Called by GetAudioManager() to create platform-specific audio manager. 112 // Called by GetAudioManager() to create platform-specific audio manager.
103 static AudioManager* CreateAudioManager(); 113 static AudioManager* CreateAudioManager();
104 }; 114 };
105 115
106 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ 116 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_manager_base.h » ('j') | media/audio/audio_manager_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698