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

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 9 years 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 114311)
+++ content/renderer/media/audio_device.cc (working copy)
@@ -60,6 +60,10 @@
CHECK_EQ(0, stream_id_) <<
"AudioDevice::Initialize() must be called before Start()";
+ DCHECK(!is_initialized_);
+ if (is_initialized_)
+ return;
+
buffer_size_ = buffer_size;
channels_ = channels;
sample_rate_ = sample_rate;
@@ -79,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