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

Unified Diff: content/renderer/media/audio_device.h

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright years Created 8 years, 9 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 | « content/content_common.gypi ('k') | content/renderer/media/audio_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.h
diff --git a/content/renderer/media/audio_device.h b/content/renderer/media/audio_device.h
index 3abb04f13bb5db2918c9acde3e2e598c59cf67ae..4cdb94642916ad85499ebb9d41b7cde3a5fd0c4d 100644
--- a/content/renderer/media/audio_device.h
+++ b/content/renderer/media/audio_device.h
@@ -86,17 +86,11 @@ class CONTENT_EXPORT AudioDevice
// Minimal constructor where Initialize() must be called later.
AudioDevice();
- AudioDevice(size_t buffer_size,
- int channels,
- double sample_rate,
- RenderCallback* callback);
+ AudioDevice(const AudioParameters& params, RenderCallback* callback);
// AudioRendererSink implementation.
- virtual void Initialize(size_t buffer_size,
- int channels,
- double sample_rate,
- AudioParameters::Format latency_format,
+ virtual void Initialize(const AudioParameters& params,
RenderCallback* callback) OVERRIDE;
// Starts audio playback.
virtual void Start() OVERRIDE;
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/media/audio_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698