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

Unified Diff: media/audio/audio_util.h

Issue 9416085: Increase the buffer size in AudioRendererImpl to fix muted playback rate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase ToT 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
diff --git a/media/audio/audio_util.h b/media/audio/audio_util.h
index d8de4799f7fee10e95e042212ced9afc463104d9..3730c1195e4c90f1d2e01be0c07e1801298b8e2a 100644
--- a/media/audio/audio_util.h
+++ b/media/audio/audio_util.h
@@ -10,6 +10,8 @@
#include "base/basictypes.h"
#include "media/base/media_export.h"
+struct AudioParameters;
+
namespace base {
class SharedMemory;
}
@@ -122,6 +124,9 @@ MEDIA_EXPORT void Crossfade(int bytes_to_crossfade, int number_of_channels,
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