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

Side by Side Diff: content/renderer/media/webrtc_audio_device_impl.h

Issue 11369171: Add chromium support for MediaStreamAudioDestinationNode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 int output_channels() const { 388 int output_channels() const {
389 return output_audio_parameters_.channels(); 389 return output_audio_parameters_.channels();
390 } 390 }
391 int input_sample_rate() const { 391 int input_sample_rate() const {
392 return input_audio_parameters_.sample_rate(); 392 return input_audio_parameters_.sample_rate();
393 } 393 }
394 int output_sample_rate() const { 394 int output_sample_rate() const {
395 return output_audio_parameters_.sample_rate(); 395 return output_audio_parameters_.sample_rate();
396 } 396 }
397 397
398 WebRtcAudioCapturer* capturer() { return capturer_; }
henrika (OOO until Aug 14) 2012/12/15 16:43:45 I think you must rebase since we already have this
399
398 private: 400 private:
399 // Make destructor private to ensure that we can only be deleted by Release(). 401 // Make destructor private to ensure that we can only be deleted by Release().
400 virtual ~WebRtcAudioDeviceImpl(); 402 virtual ~WebRtcAudioDeviceImpl();
401 403
402 // Methods called on the main render thread ---------------------------------- 404 // Methods called on the main render thread ----------------------------------
403 // The following methods are tasks posted on the render thread that needs to 405 // The following methods are tasks posted on the render thread that needs to
404 // be executed on that thread. 406 // be executed on that thread.
405 void InitOnRenderThread(int32_t* error, base::WaitableEvent* event); 407 void InitOnRenderThread(int32_t* error, base::WaitableEvent* event);
406 408
407 int ref_count_; 409 int ref_count_;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 // Used for histograms of total recording and playout times. 453 // Used for histograms of total recording and playout times.
452 base::Time start_capture_time_; 454 base::Time start_capture_time_;
453 base::Time start_render_time_; 455 base::Time start_render_time_;
454 456
455 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); 457 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl);
456 }; 458 };
457 459
458 } // namespace content 460 } // namespace content
459 461
460 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 462 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698