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

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

Issue 11359196: Associate audio streams with their source/destination RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Dale's comments. 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_CAPTURER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 // Called by the client on the sink side. Return false if the capturer has 33 // Called by the client on the sink side. Return false if the capturer has
34 // not been initialized successfully. 34 // not been initialized successfully.
35 void AddCapturerSink(WebRtcAudioCapturerSink* sink); 35 void AddCapturerSink(WebRtcAudioCapturerSink* sink);
36 36
37 // Called by the client on the sink side to remove 37 // Called by the client on the sink side to remove
38 void RemoveCapturerSink(WebRtcAudioCapturerSink* sink); 38 void RemoveCapturerSink(WebRtcAudioCapturerSink* sink);
39 39
40 // SetCapturerSource() is called if client on the source side desires to 40 // SetCapturerSource() is called if client on the source side desires to
41 // provide their own captured audio data. Client is responsible for calling 41 // provide their own captured audio data. Client is responsible for calling
42 // Start() on its own source to have the ball rolling. 42 // Start() on its own source to have the ball rolling.
43 void SetCapturerSource(media::AudioCapturerSource* source); 43 void SetCapturerSource(scoped_refptr<media::AudioCapturerSource> source);
scherkus (not reviewing) 2012/11/28 21:55:01 nit: we like to const-ref-ify the scoped_refptr<>
miu 2012/11/28 22:20:54 Me too! ;-) Somehow I missed it this time. Done
44 44
45 // Starts recording audio. 45 // Starts recording audio.
46 void Start(); 46 void Start();
47 47
48 // Stops recording audio. 48 // Stops recording audio.
49 void Stop(); 49 void Stop();
50 50
51 // Sets the microphone volume. 51 // Sets the microphone volume.
52 void SetVolume(double volume); 52 void SetVolume(double volume);
53 53
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Protect access to |source_|, |sinks_|, |running_|. 100 // Protect access to |source_|, |sinks_|, |running_|.
101 base::Lock lock_; 101 base::Lock lock_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer); 103 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer);
104 }; 104 };
105 105
106 } // namespace content 106 } // namespace content
107 107
108 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ 108 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698