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 // Audio rendering unit utilizing audio output stream provided by browser | 5 // Audio rendering unit utilizing audio output stream provided by browser |
6 // process through IPC. | 6 // process through IPC. |
7 // | 7 // |
8 // Relationship of classes. | 8 // Relationship of classes. |
9 // | 9 // |
10 // AudioOutputController AudioOutputDevice | 10 // AudioOutputController AudioOutputDevice |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // AudioRendererSink implementation. | 103 // AudioRendererSink implementation. |
104 void Initialize(const AudioParameters& params, | 104 void Initialize(const AudioParameters& params, |
105 RenderCallback* callback) override; | 105 RenderCallback* callback) override; |
106 void Start() override; | 106 void Start() override; |
107 void Stop() override; | 107 void Stop() override; |
108 void Play() override; | 108 void Play() override; |
109 void Pause() override; | 109 void Pause() override; |
110 bool SetVolume(double volume) override; | 110 bool SetVolume(double volume) override; |
111 OutputDeviceInfo GetOutputDeviceInfo() override; | 111 OutputDeviceInfo GetOutputDeviceInfo() override; |
| 112 bool CurrentThreadIsRenderingThread() override; |
112 | 113 |
113 // Methods called on IO thread ---------------------------------------------- | 114 // Methods called on IO thread ---------------------------------------------- |
114 // AudioOutputIPCDelegate methods. | 115 // AudioOutputIPCDelegate methods. |
115 void OnStateChanged(AudioOutputIPCDelegateState state) override; | 116 void OnStateChanged(AudioOutputIPCDelegateState state) override; |
116 void OnDeviceAuthorized(OutputDeviceStatus device_status, | 117 void OnDeviceAuthorized(OutputDeviceStatus device_status, |
117 const media::AudioParameters& output_params, | 118 const media::AudioParameters& output_params, |
118 const std::string& matched_device_id) override; | 119 const std::string& matched_device_id) override; |
119 void OnStreamCreated(base::SharedMemoryHandle handle, | 120 void OnStreamCreated(base::SharedMemoryHandle handle, |
120 base::SyncSocket::Handle socket_handle, | 121 base::SyncSocket::Handle socket_handle, |
121 int length) override; | 122 int length) override; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 216 |
216 const base::TimeDelta auth_timeout_; | 217 const base::TimeDelta auth_timeout_; |
217 std::unique_ptr<base::OneShotTimer> auth_timeout_action_; | 218 std::unique_ptr<base::OneShotTimer> auth_timeout_action_; |
218 | 219 |
219 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice); | 220 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice); |
220 }; | 221 }; |
221 | 222 |
222 } // namespace media | 223 } // namespace media |
223 | 224 |
224 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_ | 225 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_ |
OLD | NEW |