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

Unified Diff: media/audio/android/audio_manager_android.cc

Issue 12457043: Android implementation of WebAudio audio file decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/android/audio_manager_android.cc
diff --git a/media/audio/android/audio_manager_android.cc b/media/audio/android/audio_manager_android.cc
index e2899186894d38bcbcf0d5a1a21b2d51c4de8aaa..71801cff9597f95c41636a4775da9365f047a53c 100644
--- a/media/audio/android/audio_manager_android.cc
+++ b/media/audio/android/audio_manager_android.cc
@@ -83,10 +83,10 @@ AudioInputStream* AudioManagerAndroid::MakeLowLatencyInputStream(
AudioParameters AudioManagerAndroid::GetPreferredOutputStreamParameters(
const AudioParameters& input_params) {
- // TODO(xians): figure out the right output sample rate and sample rate to
+ // TODO(xians): figure out the right output sample rate and buffer size to
// achieve the best audio performance for Android devices.
- static const int kDefaultSampleRate = 16000;
- static const int kDefaultBufferSize = 1024;
+ static const int kDefaultSampleRate = 44100;
+ static const int kDefaultBufferSize = 2048;
ChannelLayout channel_layout = CHANNEL_LAYOUT_STEREO;
int sample_rate = kDefaultSampleRate;

Powered by Google App Engine
This is Rietveld 408576698