| 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 IsOptimizedForHardwareParameters() override; |
| 112 bool CurrentThreadIsRenderingThread() override; | 113 bool CurrentThreadIsRenderingThread() override; |
| 113 | 114 |
| 114 // Methods called on IO thread ---------------------------------------------- | 115 // Methods called on IO thread ---------------------------------------------- |
| 115 // AudioOutputIPCDelegate methods. | 116 // AudioOutputIPCDelegate methods. |
| 116 void OnError() override; | 117 void OnError() override; |
| 117 void OnDeviceAuthorized(OutputDeviceStatus device_status, | 118 void OnDeviceAuthorized(OutputDeviceStatus device_status, |
| 118 const media::AudioParameters& output_params, | 119 const media::AudioParameters& output_params, |
| 119 const std::string& matched_device_id) override; | 120 const std::string& matched_device_id) override; |
| 120 void OnStreamCreated(base::SharedMemoryHandle handle, | 121 void OnStreamCreated(base::SharedMemoryHandle handle, |
| 121 base::SyncSocket::Handle socket_handle, | 122 base::SyncSocket::Handle socket_handle, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 217 |
| 217 const base::TimeDelta auth_timeout_; | 218 const base::TimeDelta auth_timeout_; |
| 218 std::unique_ptr<base::OneShotTimer> auth_timeout_action_; | 219 std::unique_ptr<base::OneShotTimer> auth_timeout_action_; |
| 219 | 220 |
| 220 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice); | 221 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice); |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 } // namespace media | 224 } // namespace media |
| 224 | 225 |
| 225 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_ | 226 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_ |
| OLD | NEW |