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

Unified Diff: media/base/audio_latency.h

Issue 2750543003: Support AudioContextOptions latencyHint as double. (Closed)
Patch Set: Refactor audiocontextoptions LayoutTest. Created 3 years, 8 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: media/base/audio_latency.h
diff --git a/media/base/audio_latency.h b/media/base/audio_latency.h
index c6c44f9cebd70176766d097adf47db42af19feb2..aae14a78f584c74ab708700c43d77d674194ab48 100644
--- a/media/base/audio_latency.h
+++ b/media/base/audio_latency.h
@@ -7,6 +7,10 @@
#include "media/base/media_export.h"
+namespace base {
+class TimeDelta;
+}
+
namespace media {
class MEDIA_EXPORT AudioLatency {
@@ -35,6 +39,10 @@ class MEDIA_EXPORT AudioLatency {
static int GetRtcBufferSize(int sample_rate, int hardware_buffer_size);
static int GetInteractiveBufferSize(int hardware_buffer_size);
+
+ static int GetExactBufferSize(base::TimeDelta duration,
+ int sample_rate,
+ int hardware_buffer_size);
};
} // namespace media
« no previous file with comments | « content/shell/renderer/layout_test/layout_test_content_renderer_client.cc ('k') | media/base/audio_latency.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698