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

Unified Diff: media/audio/mac/audio_low_latency_input_mac.h

Issue 2689483006: Switch browser side audio capture path to use base time primitives. (Closed)
Patch Set: Bloop Created 3 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
Index: media/audio/mac/audio_low_latency_input_mac.h
diff --git a/media/audio/mac/audio_low_latency_input_mac.h b/media/audio/mac/audio_low_latency_input_mac.h
index 623fe8973b01f818216cb225c3a14a73dfbdac83..8f9e3993c14a06580c5903a6390384ec9aff5d45 100644
--- a/media/audio/mac/audio_low_latency_input_mac.h
+++ b/media/audio/mac/audio_low_latency_input_mac.h
@@ -140,10 +140,10 @@ class MEDIA_EXPORT AUAudioInputStream
// Gets the fixed capture hardware latency and store it during initialization.
// Returns 0 if not available.
- double GetHardwareLatency();
+ base::TimeDelta GetHardwareLatency();
// Gets the current capture delay value.
- double GetCaptureLatency(const AudioTimeStamp* input_time_stamp);
+ base::TimeDelta GetCaptureLatency(const AudioTimeStamp* input_time_stamp);
// Gets the number of channels for a stream of audio data.
int GetNumberOfChannelsFromStream();
@@ -232,8 +232,8 @@ class MEDIA_EXPORT AUAudioInputStream
// array as soon as a frame of the desired buffer size has been recorded.
std::unique_ptr<uint8_t[]> audio_data_buffer_;
- // Fixed capture hardware latency in frames.
- double hardware_latency_frames_;
+ // Fixed capture hardware latency.
+ base::TimeDelta hardware_latency_;
// The number of channels in each frame of audio data, which is used
// when querying the volume of each channel.

Powered by Google App Engine
This is Rietveld 408576698