| 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 19 matching lines...) Expand all Loading... |
| 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) override; | 37 const AudioParameters& params) override; |
| 38 AudioOutputStream* MakeLowLatencyOutputStream( | 38 AudioOutputStream* MakeLowLatencyOutputStream( |
| 39 const AudioParameters& params, | 39 const AudioParameters& params, |
| 40 const std::string& device_id) override; | 40 const std::string& device_id, |
| 41 const StatisticsCallback& statistics_callback) override; |
| 41 AudioInputStream* MakeLinearInputStream( | 42 AudioInputStream* MakeLinearInputStream( |
| 42 const AudioParameters& params, | 43 const AudioParameters& params, |
| 43 const std::string& device_id) override; | 44 const std::string& device_id) override; |
| 44 AudioInputStream* MakeLowLatencyInputStream( | 45 AudioInputStream* MakeLowLatencyInputStream( |
| 45 const AudioParameters& params, | 46 const AudioParameters& params, |
| 46 const std::string& device_id) override; | 47 const std::string& device_id) override; |
| 47 | 48 |
| 48 static snd_pcm_format_t BitsToFormat(int bits_per_sample); | 49 static snd_pcm_format_t BitsToFormat(int bits_per_sample); |
| 49 | 50 |
| 50 protected: | 51 protected: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 69 | 70 |
| 70 const char* beamforming_on_device_id_; | 71 const char* beamforming_on_device_id_; |
| 71 const char* beamforming_off_device_id_; | 72 const char* beamforming_off_device_id_; |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 74 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace media | 77 } // namespace media |
| 77 | 78 |
| 78 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 79 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
| OLD | NEW |