summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/media/audio_common.h
diff options
context:
space:
mode:
authorvrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-23 19:16:35 +0000
committervrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-23 19:16:35 +0000
commit0d9e8ca63187c8167076f6e70b2c1b8c5dd3b96e (patch)
tree1afb78f2e330cef022dd8f02cdcb5fc7cf4f6f99 /content/browser/renderer_host/media/audio_common.h
parent8f6304e029f9c57ebfc2dbce56ee66104cfc1070 (diff)
downloadchromium_src-0d9e8ca63187c8167076f6e70b2c1b8c5dd3b96e.zip
chromium_src-0d9e8ca63187c8167076f6e70b2c1b8c5dd3b96e.tar.gz
chromium_src-0d9e8ca63187c8167076f6e70b2c1b8c5dd3b96e.tar.bz2
Increase the buffer size in AudioRendererImpl to fix muted playback rate
This CL temporarily removes GetBufferSizeForSampleRate() and uses SelectSamplesPerPacket() to determine the size of samples_per_packet in AudioDevice. This restores the buffer size that AudioRendererImpl used prior to r113821. SelectSamplesPerPacket() calculates a much larger samples_per_packet value than GetBufferSizeForSampleRate(), so it fixes the issue described in 108239. This CL also does some mild refactoring to move audio_common.cc into audio_util.cc. BUG=108239 TEST=media_unittests,content_unittests, manual testing of different playback rates Review URL: https://chromiumcodereview.appspot.com/9416085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123292 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/media/audio_common.h')
-rw-r--r--content/browser/renderer_host/media/audio_common.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/content/browser/renderer_host/media/audio_common.h b/content/browser/renderer_host/media/audio_common.h
deleted file mode 100644
index 52b7337..0000000
--- a/content/browser/renderer_host/media/audio_common.h
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_COMMON_H_
-#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_COMMON_H_
-#pragma once
-
-#include "base/basictypes.h"
-
-struct AudioParameters;
-
-// Calculates a safe hardware buffer size (in number of samples) given a set
-// of audio parameters.
-uint32 SelectSamplesPerPacket(const AudioParameters& params);
-
-#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_COMMON_H_