OLD | NEW |
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_WIN_AUDIO_MANAGER_WIN_H_ | 5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 6 #define MEDIA_AUDIO_WIN_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 18 matching lines...) Expand all Loading... |
29 virtual void MuteAll() OVERRIDE; | 29 virtual void MuteAll() OVERRIDE; |
30 virtual void UnMuteAll() OVERRIDE; | 30 virtual void UnMuteAll() OVERRIDE; |
31 virtual string16 GetAudioInputDeviceModel() OVERRIDE; | 31 virtual string16 GetAudioInputDeviceModel() OVERRIDE; |
32 virtual bool CanShowAudioInputSettings() OVERRIDE; | 32 virtual bool CanShowAudioInputSettings() OVERRIDE; |
33 virtual void ShowAudioInputSettings() OVERRIDE; | 33 virtual void ShowAudioInputSettings() OVERRIDE; |
34 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names) | 34 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names) |
35 OVERRIDE; | 35 OVERRIDE; |
36 | 36 |
37 // Windows-only methods to free a stream created in MakeAudioStream. These | 37 // Windows-only methods to free a stream created in MakeAudioStream. These |
38 // are called internally by the audio stream when it has been closed. | 38 // are called internally by the audio stream when it has been closed. |
39 void ReleaseOutputStream(PCMWaveOutAudioOutputStream* stream); | 39 void ReleaseOutputStream(AudioOutputStream* stream); |
40 | 40 |
41 // Called internally by the audio stream when it has been closed. | 41 // Called internally by the audio stream when it has been closed. |
42 void ReleaseInputStream(AudioInputStream* stream); | 42 void ReleaseInputStream(AudioInputStream* stream); |
43 | 43 |
44 private: | 44 private: |
45 virtual ~AudioManagerWin(); | 45 virtual ~AudioManagerWin(); |
46 | 46 |
47 // Number of currently open output streams. | 47 // Number of currently open output streams. |
48 int num_output_streams_; | 48 int num_output_streams_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); | 50 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
51 }; | 51 }; |
52 | 52 |
53 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 53 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
OLD | NEW |