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

Unified Diff: media/base/audio_hardware_config.cc

Issue 23691038: Switch LiveAudio to source provider solution. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased and fixed some unittests Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: media/base/audio_hardware_config.cc
diff --git a/media/base/audio_hardware_config.cc b/media/base/audio_hardware_config.cc
index d72fce7b4e234c2f225e28b528c15900dd2582d2..b0996b2a0d50036b1002640397783ba109355778 100644
--- a/media/base/audio_hardware_config.cc
+++ b/media/base/audio_hardware_config.cc
@@ -38,6 +38,11 @@ int AudioHardwareConfig::GetOutputChannels() const {
return output_params_.channels();
}
+int AudioHardwareConfig::GetInputBufferSize() const {
tommi (sloooow) - chröme 2013/09/06 11:20:30 If we can avoid adding this that'd be great. We'r
+ AutoLock auto_lock(config_lock_);
+ return input_params_.frames_per_buffer();
+}
+
int AudioHardwareConfig::GetInputSampleRate() const {
AutoLock auto_lock(config_lock_);
return input_params_.sample_rate();

Powered by Google App Engine
This is Rietveld 408576698