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(int device_index) OVERRIDE; |
125 virtual void OnDeviceStopped(); | 125 virtual void OnDeviceStopped() OVERRIDE; |
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 |
135 // webrtc::AudioDeviceModule implementation. | 135 // webrtc::AudioDeviceModule implementation. |
(...skipping 21 matching lines...) Expand all Loading... |
157 OVERRIDE; | 157 OVERRIDE; |
158 virtual int32_t SetPlayoutDevice(uint16_t index) OVERRIDE; | 158 virtual int32_t SetPlayoutDevice(uint16_t index) OVERRIDE; |
159 virtual int32_t SetPlayoutDevice(WindowsDeviceType device) OVERRIDE; | 159 virtual int32_t SetPlayoutDevice(WindowsDeviceType device) OVERRIDE; |
160 virtual int32_t SetRecordingDevice(uint16_t index) OVERRIDE; | 160 virtual int32_t SetRecordingDevice(uint16_t index) OVERRIDE; |
161 virtual int32_t SetRecordingDevice(WindowsDeviceType device) OVERRIDE; | 161 virtual int32_t SetRecordingDevice(WindowsDeviceType device) OVERRIDE; |
162 | 162 |
163 virtual int32_t PlayoutIsAvailable(bool* available) OVERRIDE; | 163 virtual int32_t PlayoutIsAvailable(bool* available) OVERRIDE; |
164 virtual int32_t InitPlayout() OVERRIDE; | 164 virtual int32_t InitPlayout() OVERRIDE; |
165 virtual bool PlayoutIsInitialized() const OVERRIDE; | 165 virtual bool PlayoutIsInitialized() const OVERRIDE; |
166 virtual int32_t RecordingIsAvailable(bool* available) OVERRIDE; | 166 virtual int32_t RecordingIsAvailable(bool* available) OVERRIDE; |
167 virtual int32_t InitRecording(); | 167 virtual int32_t InitRecording() OVERRIDE; |
168 virtual bool RecordingIsInitialized() const OVERRIDE; | 168 virtual bool RecordingIsInitialized() const OVERRIDE; |
169 | 169 |
170 virtual int32_t StartPlayout() OVERRIDE; | 170 virtual int32_t StartPlayout() OVERRIDE; |
171 virtual int32_t StopPlayout() OVERRIDE; | 171 virtual int32_t StopPlayout() OVERRIDE; |
172 virtual bool Playing() const OVERRIDE; | 172 virtual bool Playing() const OVERRIDE; |
173 virtual int32_t StartRecording() OVERRIDE; | 173 virtual int32_t StartRecording() OVERRIDE; |
174 virtual int32_t StopRecording() OVERRIDE; | 174 virtual int32_t StopRecording() OVERRIDE; |
175 virtual bool Recording() const OVERRIDE; | 175 virtual bool Recording() const OVERRIDE; |
176 | 176 |
177 virtual int32_t SetAGC(bool enable) OVERRIDE; | 177 virtual int32_t SetAGC(bool enable) OVERRIDE; |
(...skipping 149 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 |