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

Unified Diff: ppapi/shared_impl/ppb_audio_config_shared.cc

Issue 10656027: Increase default buffer size when back end can't recommend one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_audio_config_shared.cc
===================================================================
--- ppapi/shared_impl/ppb_audio_config_shared.cc (revision 143494)
+++ ppapi/shared_impl/ppb_audio_config_shared.cc (working copy)
@@ -74,14 +74,14 @@
return recommendation;
}
- // Otherwise, recommend a conservative 30ms buffer based on sample rate.
- const uint32_t kDefault30msAt44100kHz = 1323;
- const uint32_t kDefault30msAt48000kHz = 1440;
+ // Otherwise, recommend a conservative 50ms buffer based on sample rate.
+ const uint32_t kDefault50msAt44100kHz = 2205;
+ const uint32_t kDefault50msAt48000kHz = 2400;
switch (sample_rate) {
case PP_AUDIOSAMPLERATE_44100:
- return kDefault30msAt44100kHz;
+ return kDefault50msAt44100kHz;
case PP_AUDIOSAMPLERATE_48000:
- return kDefault30msAt48000kHz;
+ return kDefault50msAt48000kHz;
case PP_AUDIOSAMPLERATE_NONE:
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698