Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / renderer / media / webrtc_audio_device_not_impl.cc
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/renderer/media/webrtc_audio_device_not_impl.h"
6
7 namespace {
8
9 const int64 kMillisecondsBetweenProcessCalls = 5000;
10
11 }  // namespace
12
13 namespace content {
14
15 WebRtcAudioDeviceNotImpl::WebRtcAudioDeviceNotImpl()
16     : last_process_time_(base::TimeTicks::Now()) {
17 }
18
19 int32_t WebRtcAudioDeviceNotImpl::ChangeUniqueId(const int32_t id) {
20   return 0;
21 }
22
23 int32_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() {
24   base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_);
25   int64 time_until_next =
26       kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds();
27   return static_cast<int32_t>(time_until_next);
28 }
29
30 int32_t WebRtcAudioDeviceNotImpl::Process() {
31   last_process_time_ = base::TimeTicks::Now();
32   return 0;
33 }
34
35 int32_t WebRtcAudioDeviceNotImpl::RegisterEventObserver(
36     webrtc::AudioDeviceObserver* event_callback) {
37   return 0;
38 }
39
40 int32_t WebRtcAudioDeviceNotImpl::ActiveAudioLayer(
41     AudioLayer* audio_layer) const {
42   return 0;
43 }
44
45 webrtc::AudioDeviceModule::ErrorCode
46 WebRtcAudioDeviceNotImpl::LastError() const {
47   return AudioDeviceModule::kAdmErrNone;
48 }
49
50 int16_t WebRtcAudioDeviceNotImpl::PlayoutDevices() {
51   return 0;
52 }
53
54 int16_t WebRtcAudioDeviceNotImpl::RecordingDevices() {
55   return 0;
56 }
57
58 int32_t WebRtcAudioDeviceNotImpl::PlayoutDeviceName(
59     uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize],
60     char guid[webrtc::kAdmMaxGuidSize]) {
61   return 0;
62 }
63
64 int32_t WebRtcAudioDeviceNotImpl::RecordingDeviceName(
65     uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize],
66     char guid[webrtc::kAdmMaxGuidSize]) {
67   return 0;
68 }
69
70 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutDevice(uint16_t index) {
71   return 0;
72 }
73
74 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutDevice(WindowsDeviceType device) {
75   return 0;
76 }
77
78 int32_t WebRtcAudioDeviceNotImpl::SetRecordingDevice(uint16_t index) {
79   return 0;
80 }
81
82 int32_t WebRtcAudioDeviceNotImpl::SetRecordingDevice(WindowsDeviceType device) {
83   return 0;
84 }
85
86 int32_t WebRtcAudioDeviceNotImpl::InitPlayout() {
87   return 0;
88 }
89
90 int32_t WebRtcAudioDeviceNotImpl::InitRecording() {
91   return 0;
92 }
93
94 int32_t WebRtcAudioDeviceNotImpl::SetWaveOutVolume(uint16_t volume_left,
95                                                    uint16_t volume_right) {
96   return 0;
97 }
98
99 int32_t WebRtcAudioDeviceNotImpl::WaveOutVolume(
100     uint16_t* volume_left, uint16_t* volume_right) const {
101   return 0;
102 }
103
104 int32_t WebRtcAudioDeviceNotImpl::InitSpeaker() {
105   return 0;
106 }
107
108 bool WebRtcAudioDeviceNotImpl::SpeakerIsInitialized() const {
109   return 0;
110 }
111
112 int32_t WebRtcAudioDeviceNotImpl::InitMicrophone() {
113   return 0;
114 }
115
116 bool WebRtcAudioDeviceNotImpl::MicrophoneIsInitialized() const {
117   return 0;
118 }
119
120 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolumeIsAvailable(bool* available) {
121   return 0;
122 }
123
124 int32_t WebRtcAudioDeviceNotImpl::SetSpeakerVolume(uint32_t volume) {
125   return 0;
126 }
127
128 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolume(uint32_t* volume) const {
129   return 0;
130 }
131
132 int32_t WebRtcAudioDeviceNotImpl::MaxSpeakerVolume(uint32_t* max_volume) const {
133   return 0;
134 }
135
136 int32_t WebRtcAudioDeviceNotImpl::MinSpeakerVolume(uint32_t* min_volume) const {
137   return 0;
138 }
139
140 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolumeStepSize(
141     uint16_t* step_size) const {
142   return 0;
143 }
144
145 int32_t WebRtcAudioDeviceNotImpl::MicrophoneVolumeIsAvailable(bool* available) {
146   return 0;
147 }
148
149 int32_t WebRtcAudioDeviceNotImpl::MicrophoneVolumeStepSize(
150   uint16_t* step_size) const {
151   return 0;
152 }
153
154 int32_t WebRtcAudioDeviceNotImpl::SpeakerMuteIsAvailable(bool* available) {
155   return 0;
156 }
157
158 int32_t WebRtcAudioDeviceNotImpl::SetSpeakerMute(bool enable) {
159   return 0;
160 }
161
162 int32_t WebRtcAudioDeviceNotImpl::SpeakerMute(bool* enabled) const {
163   return 0;
164 }
165
166 int32_t WebRtcAudioDeviceNotImpl::MicrophoneMuteIsAvailable(bool* available) {
167   return 0;
168 }
169
170 int32_t WebRtcAudioDeviceNotImpl::SetMicrophoneMute(bool enable) {
171   return 0;
172 }
173
174 int32_t WebRtcAudioDeviceNotImpl::MicrophoneMute(bool* enabled) const {
175   return 0;
176 }
177
178 int32_t WebRtcAudioDeviceNotImpl::MicrophoneBoostIsAvailable(bool* available) {
179   return 0;
180 }
181
182 int32_t WebRtcAudioDeviceNotImpl::SetMicrophoneBoost(bool enable) {
183   return 0;
184 }
185
186 int32_t WebRtcAudioDeviceNotImpl::MicrophoneBoost(bool* enabled) const {
187   return 0;
188 }
189
190 int32_t WebRtcAudioDeviceNotImpl::SetStereoPlayout(bool enable) {
191   return 0;
192 }
193
194 int32_t WebRtcAudioDeviceNotImpl::StereoPlayout(bool* enabled) const {
195   return 0;
196 }
197
198 int32_t WebRtcAudioDeviceNotImpl::SetStereoRecording(bool enable) {
199   return 0;
200 }
201
202 int32_t WebRtcAudioDeviceNotImpl::StereoRecording(bool* enabled) const {
203   return 0;
204 }
205
206 int32_t WebRtcAudioDeviceNotImpl::SetRecordingChannel(
207     const ChannelType channel) {
208   return 0;
209 }
210
211 int32_t WebRtcAudioDeviceNotImpl::RecordingChannel(ChannelType* channel) const {
212   return 0;
213 }
214
215 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutBuffer(const BufferType type,
216                                                    uint16_t size_ms) {
217   return 0;
218 }
219
220 int32_t WebRtcAudioDeviceNotImpl::PlayoutBuffer(BufferType* type,
221                                                 uint16_t* size_ms) const {
222   return 0;
223 }
224
225 int32_t WebRtcAudioDeviceNotImpl::CPULoad(uint16_t* load) const {
226   return 0;
227 }
228
229 int32_t WebRtcAudioDeviceNotImpl::StartRawOutputFileRecording(
230     const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) {
231   return 0;
232 }
233
234 int32_t WebRtcAudioDeviceNotImpl::StopRawOutputFileRecording() {
235   return 0;
236 }
237
238 int32_t WebRtcAudioDeviceNotImpl::StartRawInputFileRecording(
239     const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) {
240   return 0;
241 }
242
243 int32_t WebRtcAudioDeviceNotImpl::StopRawInputFileRecording() {
244   return 0;
245 }
246
247 int32_t WebRtcAudioDeviceNotImpl::SetRecordingSampleRate(
248     const uint32_t samples_per_sec) {
249   return 0;
250 }
251
252 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutSampleRate(
253     const uint32_t samples_per_sec) {
254   return 0;
255 }
256
257 int32_t WebRtcAudioDeviceNotImpl::ResetAudioDevice() {
258   return 0;
259 }
260
261 int32_t WebRtcAudioDeviceNotImpl::SetLoudspeakerStatus(bool enable) {
262   return 0;
263 }
264
265 int32_t WebRtcAudioDeviceNotImpl::GetLoudspeakerStatus(bool* enabled) const {
266   return 0;
267 }
268
269 int32_t WebRtcAudioDeviceNotImpl::SetAGC(bool enable) {
270   return 0;
271 }
272
273 bool WebRtcAudioDeviceNotImpl::AGC() const {
274   return true;
275 }
276
277 }  // namespace content