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