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

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

Issue 2067863003: Mixing audio with different latency requirements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mixing inputs of the same latency Created 4 years, 6 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
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_AUDIO_DEVICE_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 20 matching lines...) Expand all
31 // TODO(olka): rename it, probably split it into AudioRendererSinkFactory and 31 // TODO(olka): rename it, probably split it into AudioRendererSinkFactory and
32 // AudioCapturerSourceFactory. 32 // AudioCapturerSourceFactory.
33 class CONTENT_EXPORT AudioDeviceFactory { 33 class CONTENT_EXPORT AudioDeviceFactory {
34 public: 34 public:
35 // Types of audio sources. 35 // Types of audio sources.
36 enum SourceType { 36 enum SourceType {
37 kSourceNone = 0, 37 kSourceNone = 0,
38 kSourceMediaElement, 38 kSourceMediaElement,
39 kSourceWebRtc, 39 kSourceWebRtc,
40 kSourceNonRtcAudioTrack, 40 kSourceNonRtcAudioTrack,
41 kSourceWebAudio, 41 kSourceWebAudioInteractive,
chcunningham 2016/06/22 02:13:56 Can you add some comments about what makes these t
o1ka 2016/06/23 16:36:15 Tried to explain in the enum comment. I don't thin
chcunningham 2016/06/27 23:12:24 Acknowledged.
42 kSourceLast = kSourceWebAudio // Only used for validation of format. 42 kSourceWebAudioBalanced,
43 kSourceWebAudioPlayback,
44 kSourceWebAudioExact,
45 kSourceLast = kSourceWebAudioExact // Only used for validation of format.
43 }; 46 };
44 47
45 // Creates a sink for AudioRendererMixer. 48 // Creates a sink for AudioRendererMixer.
46 // |render_frame_id| refers to the RenderFrame containing the entity 49 // |render_frame_id| refers to the RenderFrame containing the entity
47 // producing the audio. If |session_id| is nonzero, it is used by the browser 50 // producing the audio. If |session_id| is nonzero, it is used by the browser
48 // to select the correct input device ID and its associated output device, if 51 // to select the correct input device ID and its associated output device, if
49 // it exists. If |session_id| is zero, |device_id| and |security_origin| 52 // it exists. If |session_id| is zero, |device_id| and |security_origin|
50 // identify the output device to use. 53 // identify the output device to use.
51 // If |session_id| is zero and |device_id| and |security_origin| are empty, 54 // If |session_id| is zero and |device_id| and |security_origin| are empty,
52 // the default output device will be selected. 55 // the default output device will be selected.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 int session_id, 138 int session_id,
136 const std::string& device_id, 139 const std::string& device_id,
137 const url::Origin& security_origin); 140 const url::Origin& security_origin);
138 141
139 DISALLOW_COPY_AND_ASSIGN(AudioDeviceFactory); 142 DISALLOW_COPY_AND_ASSIGN(AudioDeviceFactory);
140 }; 143 };
141 144
142 } // namespace content 145 } // namespace content
143 146
144 #endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ 147 #endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/audio_device_factory.cc » ('j') | content/renderer/media/audio_renderer_mixer_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698