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

Unified Diff: media/audio/audio_device_thread.h

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.h
===================================================================
--- media/audio/audio_device_thread.h (revision 148738)
+++ media/audio/audio_device_thread.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_
-#define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_
+#ifndef MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_
+#define MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_
#include <vector>
@@ -12,11 +12,13 @@
#include "base/shared_memory.h"
#include "base/sync_socket.h"
#include "base/synchronization/lock.h"
-#include "content/common/content_export.h"
+#include "media/base/media_export.h"
#include "media/audio/audio_parameters.h"
class MessageLoop;
+namespace media {
+
// Data transfer between browser and render process uses a combination
// of sync sockets and shared memory. To read from the socket and render
// data, we use a worker thread, a.k.a. the AudioDeviceThread, which reads
@@ -26,14 +28,14 @@
//
// TODO(tommi): Multiple Audio[Input]Device instances should be able to share
// the same thread instead of spinning one per instance.
-class CONTENT_EXPORT AudioDeviceThread {
+class MEDIA_EXPORT AudioDeviceThread {
public:
// This is the callback interface/base class that Audio[Input]Device
// implements to render input/output data. The callback happens on the
- // AudioDevice thread.
+ // AudioOutputDevice thread.
henrika (OOO until Aug 14) 2012/07/27 11:08:57 Add AudioInputDevice thread and update AudioInputD
tommi (sloooow) - chröme 2012/07/27 11:40:05 Done.
class Callback {
public:
- Callback(const media::AudioParameters& audio_parameters,
+ Callback(const AudioParameters& audio_parameters,
base::SharedMemoryHandle memory,
int memory_length);
virtual ~Callback();
@@ -52,7 +54,7 @@
// Protected so that derived classes can access directly.
// The variables are 'const' since values are calculated/set in the
// constructor and must never change.
- const media::AudioParameters audio_parameters_;
+ const AudioParameters audio_parameters_;
const int samples_per_ms_;
const int bytes_per_ms_;
@@ -104,4 +106,6 @@
DISALLOW_COPY_AND_ASSIGN(AudioDeviceThread);
};
-#endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_
+} // namespace media.
+
+#endif // MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_

Powered by Google App Engine
This is Rietveld 408576698