| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual void Render(const std::vector<float*>& audio_data, | 113 virtual void Render(const std::vector<float*>& audio_data, |
| 114 size_t number_of_frames, | 114 size_t number_of_frames, |
| 115 size_t audio_delay_milliseconds) OVERRIDE; | 115 size_t audio_delay_milliseconds) OVERRIDE; |
| 116 | 116 |
| 117 // AudioInputDevice::CaptureCallback implementation. | 117 // AudioInputDevice::CaptureCallback implementation. |
| 118 virtual void Capture(const std::vector<float*>& audio_data, | 118 virtual void Capture(const std::vector<float*>& audio_data, |
| 119 size_t number_of_frames, | 119 size_t number_of_frames, |
| 120 size_t audio_delay_milliseconds) OVERRIDE; | 120 size_t audio_delay_milliseconds) OVERRIDE; |
| 121 | 121 |
| 122 // AudioInputDevice::CaptureEventHandler implementation. | 122 // AudioInputDevice::CaptureEventHandler implementation. |
| 123 virtual void OnDeviceStarted(int device_index); | 123 virtual void OnDeviceStarted(const std::string& device_uid); |
| 124 virtual void OnDeviceStopped(); | 124 virtual void OnDeviceStopped(); |
| 125 | 125 |
| 126 // webrtc::Module implementation. | 126 // webrtc::Module implementation. |
| 127 virtual int32_t Version(char* version, | 127 virtual int32_t Version(char* version, |
| 128 uint32_t& remaining_buffer_in_bytes, | 128 uint32_t& remaining_buffer_in_bytes, |
| 129 uint32_t& position) const OVERRIDE; | 129 uint32_t& position) const OVERRIDE; |
| 130 virtual int32_t ChangeUniqueId(const int32_t id) OVERRIDE; | 130 virtual int32_t ChangeUniqueId(const int32_t id) OVERRIDE; |
| 131 virtual int32_t TimeUntilNextProcess() OVERRIDE; | 131 virtual int32_t TimeUntilNextProcess() OVERRIDE; |
| 132 virtual int32_t Process() OVERRIDE; | 132 virtual int32_t Process() OVERRIDE; |
| 133 | 133 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 int bytes_per_sample_; | 317 int bytes_per_sample_; |
| 318 | 318 |
| 319 bool initialized_; | 319 bool initialized_; |
| 320 bool playing_; | 320 bool playing_; |
| 321 bool recording_; | 321 bool recording_; |
| 322 | 322 |
| 323 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); | 323 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); |
| 324 }; | 324 }; |
| 325 | 325 |
| 326 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 326 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
| OLD | NEW |