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

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

Issue 11369171: Add chromium support for MediaStreamAudioDestinationNode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Called by the client on the sink side to add a sink. 51 // Called by the client on the sink side to add a sink.
52 void AddCapturerSink(WebRtcAudioCapturerSink* sink); 52 void AddCapturerSink(WebRtcAudioCapturerSink* sink);
53 53
54 // Called by the client on the sink side to remove a sink. 54 // Called by the client on the sink side to remove a sink.
55 void RemoveCapturerSink(WebRtcAudioCapturerSink* sink); 55 void RemoveCapturerSink(WebRtcAudioCapturerSink* sink);
56 56
57 // SetCapturerSource() is called if the client on the source side desires to 57 // SetCapturerSource() is called if the client on the source side desires to
58 // provide their own captured audio data. Client is responsible for calling 58 // provide their own captured audio data. Client is responsible for calling
59 // Start() on its own source to have the ball rolling. 59 // Start() on its own source to have the ball rolling.
60 void SetCapturerSource( 60 void SetCapturerSource(
61 const scoped_refptr<media::AudioCapturerSource>& source); 61 const scoped_refptr<media::AudioCapturerSource>& source,
62 media::ChannelLayout channel_layout,
63 float sample_rate);
62 64
63 // The |on_device_stopped_cb| callback will be called in OnDeviceStopped(). 65 // The |on_device_stopped_cb| callback will be called in OnDeviceStopped().
64 void SetStopCallback(const base::Closure& on_device_stopped_cb); 66 void SetStopCallback(const base::Closure& on_device_stopped_cb);
65 67
66 // Informs this class that a local sink shall be used in addition to the 68 // Informs this class that a local sink shall be used in addition to the
67 // registered WebRtcAudioCapturerSink sink(s). The capturer will enter a 69 // registered WebRtcAudioCapturerSink sink(s). The capturer will enter a
68 // buffering mode and store all incoming audio frames in a local FIFO. 70 // buffering mode and store all incoming audio frames in a local FIFO.
69 // The renderer will read data from this buffer using the ProvideInput() 71 // The renderer will read data from this buffer using the ProvideInput()
70 // method. Called on the main render thread. 72 // method. Called on the main render thread.
71 void PrepareLoopback(); 73 void PrepareLoopback();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 173
172 // True when FIFO is utilized, false otherwise. 174 // True when FIFO is utilized, false otherwise.
173 bool buffering_; 175 bool buffering_;
174 176
175 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer); 177 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer);
176 }; 178 };
177 179
178 } // namespace content 180 } // namespace content
179 181
180 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ 182 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698