OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Implementation of AudioManagerBase. | 33 // Implementation of AudioManagerBase. |
34 virtual AudioOutputStream* MakeLinearOutputStream( | 34 virtual AudioOutputStream* MakeLinearOutputStream( |
35 const AudioParameters& params) OVERRIDE; | 35 const AudioParameters& params) OVERRIDE; |
36 virtual AudioOutputStream* MakeLowLatencyOutputStream( | 36 virtual AudioOutputStream* MakeLowLatencyOutputStream( |
37 const AudioParameters& params) OVERRIDE; | 37 const AudioParameters& params) OVERRIDE; |
38 virtual AudioInputStream* MakeLinearInputStream( | 38 virtual AudioInputStream* MakeLinearInputStream( |
39 const AudioParameters& params, const std::string& device_id) OVERRIDE; | 39 const AudioParameters& params, const std::string& device_id) OVERRIDE; |
40 virtual AudioInputStream* MakeLowLatencyInputStream( | 40 virtual AudioInputStream* MakeLowLatencyInputStream( |
41 const AudioParameters& params, const std::string& device_id) OVERRIDE; | 41 const AudioParameters& params, const std::string& device_id) OVERRIDE; |
| 42 |
42 virtual AudioParameters GetPreferredLowLatencyOutputStreamParameters( | 43 virtual AudioParameters GetPreferredLowLatencyOutputStreamParameters( |
43 const AudioParameters& input_params) OVERRIDE; | 44 const AudioParameters& input_params) OVERRIDE; |
44 | 45 |
45 protected: | 46 protected: |
46 virtual ~AudioManagerWin(); | 47 virtual ~AudioManagerWin(); |
47 | 48 |
48 private: | 49 private: |
49 enum EnumerationType { | 50 enum EnumerationType { |
50 kUninitializedEnumeration = 0, | 51 kUninitializedEnumeration = 0, |
51 kMMDeviceEnumeration, | 52 kMMDeviceEnumeration, |
(...skipping 17 matching lines...) Expand all Loading... |
69 AudioInputStream* CreatePCMWaveInAudioInputStream( | 70 AudioInputStream* CreatePCMWaveInAudioInputStream( |
70 const AudioParameters& params, | 71 const AudioParameters& params, |
71 const std::string& device_id); | 72 const std::string& device_id); |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); | 74 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace media | 77 } // namespace media |
77 | 78 |
78 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 79 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
OLD | NEW |