Index: content/renderer/pepper/pepper_platform_audio_output_impl.cc |
diff --git a/content/renderer/pepper/pepper_platform_audio_output_impl.cc b/content/renderer/pepper/pepper_platform_audio_output_impl.cc |
index 5f1f57da338994d91222b73a0c9ed8ed62aee8bf..85a81633bfda971e24abcca71872081f66c139ae 100644 |
--- a/content/renderer/pepper/pepper_platform_audio_output_impl.cc |
+++ b/content/renderer/pepper/pepper_platform_audio_output_impl.cc |
@@ -120,11 +120,11 @@ bool PepperPlatformAudioOutputImpl::Initialize( |
client_ = client; |
media::AudioParameters::Format format; |
- const int kMaxFramesForLowLatency = 2400; |
+ const int kMinFramesForHighLatency = 2048; |
viettrungluu
2012/08/02 23:42:22
Keeping the name kMax..., the <=, and just changin
|
// Use the low latency back end if the client request is compatible, and |
// the sample count is low enough to justify using AUDIO_PCM_LOW_LATENCY. |
if (sample_rate == audio_hardware::GetOutputSampleRate() && |
- frames_per_buffer <= kMaxFramesForLowLatency && |
+ frames_per_buffer < kMinFramesForHighLatency && |
frames_per_buffer % audio_hardware::GetOutputBufferSize() == 0) { |
format = media::AudioParameters::AUDIO_PCM_LOW_LATENCY; |
} else { |