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

Unified Diff: media/base/audio_capturer_source.h

Issue 2622073003: Fix getUserMedia so that failure is reported for invalid audio sources. (Closed)
Patch Set: Switch to std::vector and std::unique_ptr Created 3 years, 11 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
« no previous file with comments | « media/audio/audio_input_device_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_capturer_source.h
diff --git a/media/base/audio_capturer_source.h b/media/base/audio_capturer_source.h
index d4f9cabb6c535b801cc52851fe47d12d9bac1584..d355a1b06a296e5bbcb0f6084e36f282dfde0574 100644
--- a/media/base/audio_capturer_source.h
+++ b/media/base/audio_capturer_source.h
@@ -22,6 +22,14 @@ class AudioCapturerSource
public:
class CaptureCallback {
public:
+ // Signals that audio recording has been started. Called asynchronously
+ // after Start() has completed. If Start() encounters problems before this
+ // callback can be made, OnCaptureError will be called instead.
+ // This callback is provided for sources such as local audio sources that
+ // require asynchronous initialization so not all sources will support this
+ // notification.
+ virtual void OnCaptureStarted() {}
+
// Callback to deliver the captured data from the OS.
// TODO(chcunningham): Update delay argument to use frames instead of
// milliseconds to prevent loss of precision. See http://crbug.com/587291.
« no previous file with comments | « media/audio/audio_input_device_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698