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

Unified Diff: media/audio/audio_input_controller.h

Issue 510913005: Add native log and uma stat when all input shared memory buffers are full (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added unittest and addressed comments. Created 6 years, 3 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/audio_input_controller.h
diff --git a/media/audio/audio_input_controller.h b/media/audio/audio_input_controller.h
index 691f1afb05bb75734e731274a7347622a9d40360..a4ae82452ca176187b9eb7a8319d16e365fadb97 100644
--- a/media/audio/audio_input_controller.h
+++ b/media/audio/audio_input_controller.h
@@ -132,14 +132,12 @@ class MEDIA_EXPORT AudioInputController
public:
virtual ~SyncWriter() {}
- // Notify the synchronous writer about the number of bytes in the
- // soundcard which has been recorded.
- virtual void UpdateRecordedBytes(uint32 bytes) = 0;
-
- // Write certain amount of data from |data|.
+ // Write certain amount of data from |data| and notify the synchronous
+ // receiver by sending the hardware delay in bytes via sync socket.
virtual void Write(const AudioBus* data,
double volume,
- bool key_pressed) = 0;
+ bool key_pressed,
+ uint32 hardware_delay_bytes) = 0;
// Close this synchronous writer.
virtual void Close() = 0;

Powered by Google App Engine
This is Rietveld 408576698