OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CRAS_AUDIO_MANAGER_CRAS_H_ | 5 #ifndef MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
7 | 7 |
8 #include <cras_types.h> | 8 #include <cras_types.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 16 matching lines...) Expand all Loading... |
27 bool HasAudioOutputDevices() override; | 27 bool HasAudioOutputDevices() override; |
28 bool HasAudioInputDevices() override; | 28 bool HasAudioInputDevices() override; |
29 void ShowAudioInputSettings() override; | 29 void ShowAudioInputSettings() override; |
30 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 30 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
31 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 31 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
32 AudioParameters GetInputStreamParameters( | 32 AudioParameters GetInputStreamParameters( |
33 const std::string& device_id) override; | 33 const std::string& device_id) override; |
34 | 34 |
35 // AudioManagerBase implementation. | 35 // AudioManagerBase implementation. |
36 AudioOutputStream* MakeLinearOutputStream( | 36 AudioOutputStream* MakeLinearOutputStream( |
37 const AudioParameters& params, | 37 const AudioParameters& params) override; |
38 const LogCallback& log_callback) override; | |
39 AudioOutputStream* MakeLowLatencyOutputStream( | 38 AudioOutputStream* MakeLowLatencyOutputStream( |
40 const AudioParameters& params, | 39 const AudioParameters& params, |
41 const std::string& device_id, | 40 const std::string& device_id) override; |
42 const LogCallback& log_callback) override; | |
43 AudioInputStream* MakeLinearInputStream( | 41 AudioInputStream* MakeLinearInputStream( |
44 const AudioParameters& params, | 42 const AudioParameters& params, |
45 const std::string& device_id, | 43 const std::string& device_id) override; |
46 const LogCallback& log_callback) override; | |
47 AudioInputStream* MakeLowLatencyInputStream( | 44 AudioInputStream* MakeLowLatencyInputStream( |
48 const AudioParameters& params, | 45 const AudioParameters& params, |
49 const std::string& device_id, | 46 const std::string& device_id) override; |
50 const LogCallback& log_callback) override; | |
51 | 47 |
52 static snd_pcm_format_t BitsToFormat(int bits_per_sample); | 48 static snd_pcm_format_t BitsToFormat(int bits_per_sample); |
53 | 49 |
54 protected: | 50 protected: |
55 ~AudioManagerCras() override; | 51 ~AudioManagerCras() override; |
56 | 52 |
57 AudioParameters GetPreferredOutputStreamParameters( | 53 AudioParameters GetPreferredOutputStreamParameters( |
58 const std::string& output_device_id, | 54 const std::string& output_device_id, |
59 const AudioParameters& input_params) override; | 55 const AudioParameters& input_params) override; |
60 | 56 |
(...skipping 12 matching lines...) Expand all Loading... |
73 | 69 |
74 const char* beamforming_on_device_id_; | 70 const char* beamforming_on_device_id_; |
75 const char* beamforming_off_device_id_; | 71 const char* beamforming_off_device_id_; |
76 | 72 |
77 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 73 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
78 }; | 74 }; |
79 | 75 |
80 } // namespace media | 76 } // namespace media |
81 | 77 |
82 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 78 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
OLD | NEW |