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

Unified Diff: content/browser/renderer_host/media/audio_input_renderer_host.cc

Issue 9479012: Merge 123292 - Increase the buffer size in AudioRendererImpl to fix muted playback rate (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1025/src/
Patch Set: Created 8 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
Index: content/browser/renderer_host/media/audio_input_renderer_host.cc
===================================================================
--- content/browser/renderer_host/media/audio_input_renderer_host.cc (revision 123772)
+++ content/browser/renderer_host/media/audio_input_renderer_host.cc (working copy)
@@ -8,13 +8,13 @@
#include "base/metrics/histogram.h"
#include "base/process.h"
#include "base/shared_memory.h"
-#include "content/browser/renderer_host/media/audio_common.h"
#include "content/browser/renderer_host/media/audio_input_device_manager.h"
#include "content/browser/renderer_host/media/audio_input_sync_writer.h"
#include "content/browser/renderer_host/media/media_stream_manager.h"
#include "content/browser/resource_context.h"
#include "content/common/media/audio_messages.h"
#include "ipc/ipc_logging.h"
+#include "media/audio/audio_util.h"
using content::BrowserMessageFilter;
using content::BrowserThread;
@@ -221,7 +221,8 @@
// Select the hardware packet size if not specified.
if (!audio_params.samples_per_packet) {
- audio_params.samples_per_packet = SelectSamplesPerPacket(audio_params);
+ audio_params.samples_per_packet =
+ media::SelectSamplesPerPacket(audio_params.sample_rate);
}
uint32 packet_size = audio_params.GetPacketSize();
« no previous file with comments | « content/browser/renderer_host/media/audio_common.cc ('k') | content/browser/renderer_host/media/audio_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698