| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |