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

Side by Side Diff: media/base/audio_renderer_mixer_input.h

Issue 2359883002: Make ARMI::SwitchOutputDevice work after Stop is called. (Closed)
Patch Set: Update unit test Created 4 years, 3 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
« no previous file with comments | « no previous file | media/base/audio_renderer_mixer_input.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // THREAD SAFETY 5 // THREAD SAFETY
6 // 6 //
7 // This class is generally not thread safe. Callers should ensure thread safety. 7 // This class is generally not thread safe. Callers should ensure thread safety.
8 // For instance, the |sink_lock_| in WebAudioSourceProvider synchronizes access 8 // For instance, the |sink_lock_| in WebAudioSourceProvider synchronizes access
9 // to this object across the main thread (for WebAudio APIs) and the 9 // to this object across the main thread (for WebAudio APIs) and the
10 // media thread (for HTMLMediaElement APIs). 10 // media thread (for HTMLMediaElement APIs).
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // AudioRendererMixer obtained from mixer pool during Initialize(), 93 // AudioRendererMixer obtained from mixer pool during Initialize(),
94 // guaranteed to live (at least) until it is returned to the pool. 94 // guaranteed to live (at least) until it is returned to the pool.
95 AudioRendererMixer* mixer_; 95 AudioRendererMixer* mixer_;
96 96
97 // Source of audio data which is provided to the mixer. 97 // Source of audio data which is provided to the mixer.
98 AudioRendererSink::RenderCallback* callback_; 98 AudioRendererSink::RenderCallback* callback_;
99 99
100 // Error callback for handing to AudioRendererMixer. 100 // Error callback for handing to AudioRendererMixer.
101 const base::Closure error_cb_; 101 const base::Closure error_cb_;
102 102
103 // Pending switch-device callback, in case SwitchOutputDevice() is invoked
104 // before Start()
105 OutputDeviceStatusCB pending_switch_callback_;
106 std::string pending_switch_device_id_;
107 url::Origin pending_switch_security_origin_;
108
109 DISALLOW_COPY_AND_ASSIGN(AudioRendererMixerInput); 103 DISALLOW_COPY_AND_ASSIGN(AudioRendererMixerInput);
110 }; 104 };
111 105
112 } // namespace media 106 } // namespace media
113 107
114 #endif // MEDIA_BASE_AUDIO_RENDERER_MIXER_INPUT_H_ 108 #endif // MEDIA_BASE_AUDIO_RENDERER_MIXER_INPUT_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/audio_renderer_mixer_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698