| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 virtual void Render(const std::vector<float*>& audio_data, | 114 virtual void Render(const std::vector<float*>& audio_data, |
| 115 size_t number_of_frames, | 115 size_t number_of_frames, |
| 116 size_t audio_delay_milliseconds) OVERRIDE; | 116 size_t audio_delay_milliseconds) OVERRIDE; |
| 117 | 117 |
| 118 // AudioInputDevice::CaptureCallback implementation. | 118 // AudioInputDevice::CaptureCallback implementation. |
| 119 virtual void Capture(const std::vector<float*>& audio_data, | 119 virtual void Capture(const std::vector<float*>& audio_data, |
| 120 size_t number_of_frames, | 120 size_t number_of_frames, |
| 121 size_t audio_delay_milliseconds) OVERRIDE; | 121 size_t audio_delay_milliseconds) OVERRIDE; |
| 122 | 122 |
| 123 // AudioInputDevice::CaptureEventHandler implementation. | 123 // AudioInputDevice::CaptureEventHandler implementation. |
| 124 virtual void OnDeviceStarted(int device_index); | 124 virtual void OnDeviceStarted(const std::string& device_id); |
| 125 virtual void OnDeviceStopped(); | 125 virtual void OnDeviceStopped(); |
| 126 | 126 |
| 127 // webrtc::Module implementation. | 127 // webrtc::Module implementation. |
| 128 virtual int32_t Version(char* version, | 128 virtual int32_t Version(char* version, |
| 129 uint32_t& remaining_buffer_in_bytes, | 129 uint32_t& remaining_buffer_in_bytes, |
| 130 uint32_t& position) const OVERRIDE; | 130 uint32_t& position) const OVERRIDE; |
| 131 virtual int32_t ChangeUniqueId(const int32_t id) OVERRIDE; | 131 virtual int32_t ChangeUniqueId(const int32_t id) OVERRIDE; |
| 132 virtual int32_t TimeUntilNextProcess() OVERRIDE; | 132 virtual int32_t TimeUntilNextProcess() OVERRIDE; |
| 133 virtual int32_t Process() OVERRIDE; | 133 virtual int32_t Process() OVERRIDE; |
| 134 | 134 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 int bytes_per_sample_; | 327 int bytes_per_sample_; |
| 328 | 328 |
| 329 bool initialized_; | 329 bool initialized_; |
| 330 bool playing_; | 330 bool playing_; |
| 331 bool recording_; | 331 bool recording_; |
| 332 | 332 |
| 333 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); | 333 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); |
| 334 }; | 334 }; |
| 335 | 335 |
| 336 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 336 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
| OLD | NEW |