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

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

Issue 8980008: Integrate HTMLMediaElement with Web Audio API's MediaElementAudioSourceNode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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: content/renderer/media/audio_device.cc
===================================================================
--- content/renderer/media/audio_device.cc (revision 116581)
+++ content/renderer/media/audio_device.cc (working copy)
@@ -62,6 +62,8 @@
CHECK_EQ(0, stream_id_) <<
"AudioDevice::Initialize() must be called before Start()";
+ CHECK(!is_initialized_);
+
buffer_size_ = buffer_size;
channels_ = channels;
sample_rate_ = sample_rate;
@@ -81,10 +83,6 @@
is_initialized_ = true;
}
-bool AudioDevice::IsInitialized() {
- return is_initialized_;
-}
-
AudioDevice::~AudioDevice() {
// The current design requires that the user calls Stop() before deleting
// this class.

Powered by Google App Engine
This is Rietveld 408576698