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

Unified Diff: content/browser/renderer_host/media/audio_renderer_host.h

Issue 11880009: Introduce AudioHardwareConfig for renderer side audio device info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style nits. Created 7 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 | « no previous file | content/browser/renderer_host/media/audio_renderer_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_renderer_host.h
diff --git a/content/browser/renderer_host/media/audio_renderer_host.h b/content/browser/renderer_host/media/audio_renderer_host.h
index 3056ade2be3b7393c978690c4128e6525e7fb411..263c720f1d367538717621b6cf6e1679edc97f31 100644
--- a/content/browser/renderer_host/media/audio_renderer_host.h
+++ b/content/browser/renderer_host/media/audio_renderer_host.h
@@ -85,6 +85,9 @@ class CONTENT_EXPORT AudioRendererHost
virtual void OnPaused(media::AudioOutputController* controller) OVERRIDE;
virtual void OnError(media::AudioOutputController* controller,
int error_code) OVERRIDE;
+ virtual void OnDeviceChange(media::AudioOutputController* controller,
+ int new_buffer_size,
+ int new_sample_rate) OVERRIDE;
private:
friend class AudioRendererHostTest;
@@ -135,6 +138,8 @@ class CONTENT_EXPORT AudioRendererHost
// Send a state change message to the renderer.
void DoSendPlayingMessage(media::AudioOutputController* controller);
void DoSendPausedMessage(media::AudioOutputController* controller);
+ void DoSendDeviceChangeMessage(media::AudioOutputController* controller,
+ int new_buffer_size, int new_sample_rate);
// Handle error coming from audio stream.
void DoHandleError(media::AudioOutputController* controller, int error_code);
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698