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

Side by Side Diff: media/audio/cras/audio_manager_cras.h

Issue 2787433002: audio_manager_cras: Set minimum output buffer size per board (Closed)
Patch Set: audio_manager_cras: Set minimum output buffer size per board Created 3 years, 8 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
« no previous file with comments | « no previous file | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 private: 66 private:
67 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. 67 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream.
68 AudioOutputStream* MakeOutputStream(const AudioParameters& params, 68 AudioOutputStream* MakeOutputStream(const AudioParameters& params,
69 const std::string& device_id); 69 const std::string& device_id);
70 70
71 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. 71 // Called by MakeLinearInputStream and MakeLowLatencyInputStream.
72 AudioInputStream* MakeInputStream(const AudioParameters& params, 72 AudioInputStream* MakeInputStream(const AudioParameters& params,
73 const std::string& device_id); 73 const std::string& device_id);
74 74
75 // Get minimum output buffer size for this board.
76 int GetMinimumOutputBufferSizePerBoard();
77
75 void GetAudioDeviceNamesImpl(bool is_input, AudioDeviceNames* device_names); 78 void GetAudioDeviceNamesImpl(bool is_input, AudioDeviceNames* device_names);
76 79
77 void AddBeamformingDevices(AudioDeviceNames* device_names); 80 void AddBeamformingDevices(AudioDeviceNames* device_names);
78 81
79 // Stores the mic positions field from the device. 82 // Stores the mic positions field from the device.
80 std::vector<Point> mic_positions_; 83 std::vector<Point> mic_positions_;
81 84
82 const char* beamforming_on_device_id_; 85 const char* beamforming_on_device_id_;
83 const char* beamforming_off_device_id_; 86 const char* beamforming_off_device_id_;
84 87
85 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); 88 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras);
86 }; 89 };
87 90
88 } // namespace media 91 } // namespace media
89 92
90 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ 93 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_
OLDNEW
« no previous file with comments | « no previous file | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698