Index: media/audio/pulse/pulse_util.h |
diff --git a/media/audio/pulse/pulse_util.h b/media/audio/pulse/pulse_util.h |
index b8e5cdcda4c606eaef98770e1507bbff99522855..ecd7304ae049ee7dee0e4ebb679494a75959bb68 100644 |
--- a/media/audio/pulse/pulse_util.h |
+++ b/media/audio/pulse/pulse_util.h |
@@ -7,7 +7,10 @@ |
#include <pulse/pulseaudio.h> |
+#include <string> |
+ |
#include "base/macros.h" |
+#include "base/time/time.h" |
#include "media/audio/audio_device_name.h" |
#include "media/base/channel_layout.h" |
@@ -45,6 +48,8 @@ pa_channel_map ChannelLayoutToPAChannelMap(ChannelLayout channel_layout); |
void WaitForOperationCompletion(pa_threaded_mainloop* mainloop, |
pa_operation* operation); |
+base::TimeDelta GetHardwareLatency(pa_stream* stream); |
+ |
int GetHardwareLatencyInBytes(pa_stream* stream, |
int sample_rate, |
int bytes_per_frame); |