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

Unified Diff: media/audio/audio_io.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/audio_io.h
diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h
index 6ab50aa952e88e5ca97c3d903d40da530d59e104..9744df018422abdc66da469e4860d24535cf1ee4 100644
--- a/media/audio/audio_io.h
+++ b/media/audio/audio_io.h
@@ -119,18 +119,11 @@ class MEDIA_EXPORT AudioInputStream {
// Called by the audio recorder when a full packet of audio data is
// available. This is called from a special audio thread and the
// implementation should return as soon as possible.
- // TODO(henrika): should be pure virtual when old OnData() is phased out.
virtual void OnData(AudioInputStream* stream,
const AudioBus* source,
- uint32_t hardware_delay_bytes,
- double volume) {}
-
- // TODO(henrika): don't use; to be removed.
- virtual void OnData(AudioInputStream* stream,
- const uint8_t* src,
- uint32_t size,
- uint32_t hardware_delay_bytes,
- double volume) {}
+ base::TimeDelta delay,
+ base::TimeTicks delay_timestamp,
+ double volume) = 0;
// There was an error while recording audio. The audio sink cannot be
// destroyed yet. No direct action needed by the AudioInputStream, but it

Powered by Google App Engine
This is Rietveld 408576698