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

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

Issue 8528026: Adds more unit tests for WebRTC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Removed DISABLED_ for some tests. Created 9 years, 1 month 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 | « no previous file | content/renderer/media/webrtc_audio_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_audio_device_impl.h
===================================================================
--- content/renderer/media/webrtc_audio_device_impl.h (revision 110263)
+++ content/renderer/media/webrtc_audio_device_impl.h (working copy)
@@ -91,14 +91,14 @@
// - The webrtc::AudioDeviceModule is reference counted.
// - Recording is currently not supported on Mac OS X.
//
-class WebRtcAudioDeviceImpl
+class CONTENT_EXPORT WebRtcAudioDeviceImpl
: public webrtc::AudioDeviceModule,
public AudioDevice::RenderCallback,
public AudioInputDevice::CaptureCallback,
public AudioInputDevice::CaptureEventHandler {
public:
// Methods called on main render thread.
- CONTENT_EXPORT WebRtcAudioDeviceImpl();
+ WebRtcAudioDeviceImpl();
// webrtc::RefCountedModule implementation.
// The creator must call AddRef() after construction and use Release()
@@ -250,13 +250,22 @@
virtual int32_t GetLoudspeakerStatus(bool* enabled) const OVERRIDE;
// Sets the session id.
- CONTENT_EXPORT void SetSessionId(int session_id);
+ void SetSessionId(int session_id);
// Accessors.
size_t input_buffer_size() const { return input_buffer_size_; }
size_t output_buffer_size() const { return output_buffer_size_; }
int input_channels() const { return input_channels_; }
int output_channels() const { return output_channels_; }
+ int input_sample_rate() const { return static_cast<int>(input_sample_rate_); }
+ int output_sample_rate() const {
+ return static_cast<int>(output_sample_rate_);
+ }
+ int input_delay_ms() const { return input_delay_ms_; }
+ int output_delay_ms() const { return output_delay_ms_; }
+ bool initialized() const { return initialized_; }
+ bool playing() const { return playing_; }
+ bool recording() const { return recording_; }
private:
// Make destructor private to ensure that we can only be deleted by Release().
@@ -311,7 +320,7 @@
// on the input/capture side.
int session_id_;
- // Protect |recording_|.
+ // Protects |recording_|.
base::Lock lock_;
int bytes_per_sample_;
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698