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

Unified Diff: media/audio/audio_util.cc

Issue 10952024: Adding pulseaudio input support to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased and addressed Dale's final comments. Created 7 years, 10 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
« no previous file with comments | « no previous file | media/audio/linux/audio_manager_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_util.cc
diff --git a/media/audio/audio_util.cc b/media/audio/audio_util.cc
index 33739bbd0056417319b57f8269e3120fde011c26..0c8b96c4596799ea63426129ff04f494df220c17 100644
--- a/media/audio/audio_util.cc
+++ b/media/audio/audio_util.cc
@@ -138,8 +138,6 @@ int GetAudioHardwareSampleRate() {
// TODO(leozwang): return native sampling rate on Android.
return 16000;
#else
- // Hardware for Linux is nearly always 48KHz.
- // TODO(crogers) : return correct value in rare non-48KHz cases.
return 48000;
#endif
}
@@ -157,6 +155,8 @@ int GetAudioInputHardwareSampleRate(const std::string& device_id) {
#elif defined(OS_ANDROID)
return 16000;
#else
+ // Hardware for Linux is nearly always 48KHz.
+ // TODO(crogers) : return correct value in rare non-48KHz cases.
return 48000;
#endif
}
« no previous file with comments | « no previous file | media/audio/linux/audio_manager_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698