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

Unified Diff: media/audio/audio_device_thread.cc

Issue 10834033: Move AudioDevice and AudioInputDevice to media. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: media/audio/audio_device_thread.cc
===================================================================
--- media/audio/audio_device_thread.cc (revision 148738)
+++ media/audio/audio_device_thread.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/renderer/media/audio_device_thread.h"
+#include "media/audio/audio_device_thread.h"
#include "base/bind.h"
#include "base/logging.h"
@@ -13,6 +13,8 @@
using base::PlatformThread;
+namespace media {
+
// The actual worker thread implementation. It's very bare bones and much
// simpler than SimpleThread (no synchronization in Start, etc) and supports
// joining the thread handle asynchronously via a provided message loop even
@@ -170,7 +172,7 @@
// AudioDeviceThread::Callback implementation
AudioDeviceThread::Callback::Callback(
- const media::AudioParameters& audio_parameters,
+ const AudioParameters& audio_parameters,
base::SharedMemoryHandle memory, int memory_length)
: audio_parameters_(audio_parameters),
samples_per_ms_(audio_parameters.sample_rate() / 1000),
@@ -200,3 +202,5 @@
audio_data_.push_back(channel_data);
}
}
+
+} // namespace media.

Powered by Google App Engine
This is Rietveld 408576698