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

Unified Diff: media/audio/audio_util.h

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
« no previous file with comments | « content/renderer/media/audio_renderer_impl.cc ('k') | media/audio/audio_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_util.h
===================================================================
--- media/audio/audio_util.h (revision 123772)
+++ media/audio/audio_util.h (working copy)
@@ -10,6 +10,8 @@
#include "base/basictypes.h"
#include "media/base/media_export.h"
+struct AudioParameters;
+
namespace base {
class SharedMemory;
}
@@ -122,6 +124,9 @@
int bytes_per_channel, const uint8* src,
uint8* dest);
+// Calculates a safe hardware buffer size (in number of samples) given a set
+// of audio parameters.
+MEDIA_EXPORT uint32 SelectSamplesPerPacket(int sample_rate);
} // namespace media
« no previous file with comments | « content/renderer/media/audio_renderer_impl.cc ('k') | media/audio/audio_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698