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

Unified Diff: media/audio/win/audio_low_latency_output_win.h

Issue 12220076: Ensures that WASAPI audio output does not go silent in rare cases (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 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
« no previous file with comments | « no previous file | media/audio/win/audio_low_latency_output_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_low_latency_output_win.h
diff --git a/media/audio/win/audio_low_latency_output_win.h b/media/audio/win/audio_low_latency_output_win.h
index cf7aeec095273ba1dfaa550ca3395c72744fb30b..116b92fd536ffb81046591230e5c3f214dff36de 100644
--- a/media/audio/win/audio_low_latency_output_win.h
+++ b/media/audio/win/audio_low_latency_output_win.h
@@ -162,6 +162,12 @@ class MEDIA_EXPORT WASAPIAudioOutputStream :
// DelegateSimpleThread::Delegate implementation.
virtual void Run() OVERRIDE;
+ // Core part of the thread loop which controls the actual rendering.
+ // Checks available amount of space in the endpoint buffer and reads
+ // data from the client to fill up the buffer without causing audio
+ // glitches.
+ void RenderAudioFromSource(IAudioClock* audio_clock, UINT64 device_frequency);
+
// Issues the OnError() callback to the |sink_|.
void HandleError(HRESULT err);
« no previous file with comments | « no previous file | media/audio/win/audio_low_latency_output_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698