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

Side by Side Diff: media/audio/win/audio_manager_win.h

Issue 7060011: Adding GetAudioInputDeviceNames to AudioManager, this function is supposed to do device enumerati... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 7 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
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_WIN_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 // Implementation of AudioManager. 22 // Implementation of AudioManager.
23 virtual bool HasAudioOutputDevices(); 23 virtual bool HasAudioOutputDevices();
24 virtual bool HasAudioInputDevices(); 24 virtual bool HasAudioInputDevices();
25 virtual AudioOutputStream* MakeAudioOutputStream(AudioParameters params); 25 virtual AudioOutputStream* MakeAudioOutputStream(AudioParameters params);
26 virtual AudioInputStream* MakeAudioInputStream(AudioParameters params); 26 virtual AudioInputStream* MakeAudioInputStream(AudioParameters params);
27 virtual void MuteAll(); 27 virtual void MuteAll();
28 virtual void UnMuteAll(); 28 virtual void UnMuteAll();
29 virtual string16 GetAudioInputDeviceModel(); 29 virtual string16 GetAudioInputDeviceModel();
30 virtual bool CanShowAudioInputSettings(); 30 virtual bool CanShowAudioInputSettings();
31 virtual void ShowAudioInputSettings(); 31 virtual void ShowAudioInputSettings();
32 virtual void GetAudioInputDeviceNames(AudioInputDeviceNames* device_names);
32 33
33 // Windows-only methods to free a stream created in MakeAudioStream. These 34 // Windows-only methods to free a stream created in MakeAudioStream. These
34 // are called internally by the audio stream when it has been closed. 35 // are called internally by the audio stream when it has been closed.
35 void ReleaseOutputStream(PCMWaveOutAudioOutputStream* stream); 36 void ReleaseOutputStream(PCMWaveOutAudioOutputStream* stream);
36 37
37 // Called internally by the audio stream when it has been closed. 38 // Called internally by the audio stream when it has been closed.
38 void ReleaseInputStream(PCMWaveInAudioInputStream* stream); 39 void ReleaseInputStream(PCMWaveInAudioInputStream* stream);
39 40
40 private: 41 private:
41 virtual ~AudioManagerWin(); 42 virtual ~AudioManagerWin();
42 43
43 // Number of currently open output streams. 44 // Number of currently open output streams.
44 int num_output_streams_; 45 int num_output_streams_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); 47 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin);
47 }; 48 };
48 49
49 #endif // MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_ 50 #endif // MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698