Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / renderer / media / webrtc_audio_device_not_impl.cc
blob234bf87f7d33124111a4065e6ae4b3dfb6b8f70c
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.
5 #include "content/renderer/media/webrtc_audio_device_not_impl.h"
7 namespace content {
9 WebRtcAudioDeviceNotImpl::WebRtcAudioDeviceNotImpl()
10 : last_process_time_(base::TimeTicks::Now()) {
13 int64_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() {
14 const int64_t kMillisecondsBetweenProcessCalls = 5000;
15 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_);
16 return kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds();
19 int32_t WebRtcAudioDeviceNotImpl::Process() {
20 last_process_time_ = base::TimeTicks::Now();
21 return 0;
24 int32_t WebRtcAudioDeviceNotImpl::RegisterEventObserver(
25 webrtc::AudioDeviceObserver* event_callback) {
26 return 0;
29 int32_t WebRtcAudioDeviceNotImpl::ActiveAudioLayer(
30 AudioLayer* audio_layer) const {
31 return 0;
34 webrtc::AudioDeviceModule::ErrorCode
35 WebRtcAudioDeviceNotImpl::LastError() const {
36 return AudioDeviceModule::kAdmErrNone;
39 int16_t WebRtcAudioDeviceNotImpl::PlayoutDevices() {
40 return 0;
43 int16_t WebRtcAudioDeviceNotImpl::RecordingDevices() {
44 return 0;
47 int32_t WebRtcAudioDeviceNotImpl::PlayoutDeviceName(
48 uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize],
49 char guid[webrtc::kAdmMaxGuidSize]) {
50 return 0;
53 int32_t WebRtcAudioDeviceNotImpl::RecordingDeviceName(
54 uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize],
55 char guid[webrtc::kAdmMaxGuidSize]) {
56 return 0;
59 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutDevice(uint16_t index) {
60 return 0;
63 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutDevice(WindowsDeviceType device) {
64 return 0;
67 int32_t WebRtcAudioDeviceNotImpl::SetRecordingDevice(uint16_t index) {
68 return 0;
71 int32_t WebRtcAudioDeviceNotImpl::SetRecordingDevice(WindowsDeviceType device) {
72 return 0;
75 int32_t WebRtcAudioDeviceNotImpl::InitPlayout() {
76 return 0;
79 int32_t WebRtcAudioDeviceNotImpl::InitRecording() {
80 return 0;
83 int32_t WebRtcAudioDeviceNotImpl::SetWaveOutVolume(uint16_t volume_left,
84 uint16_t volume_right) {
85 return 0;
88 int32_t WebRtcAudioDeviceNotImpl::WaveOutVolume(
89 uint16_t* volume_left, uint16_t* volume_right) const {
90 return 0;
93 int32_t WebRtcAudioDeviceNotImpl::InitSpeaker() {
94 return 0;
97 bool WebRtcAudioDeviceNotImpl::SpeakerIsInitialized() const {
98 return 0;
101 int32_t WebRtcAudioDeviceNotImpl::InitMicrophone() {
102 return 0;
105 bool WebRtcAudioDeviceNotImpl::MicrophoneIsInitialized() const {
106 return 0;
109 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolumeIsAvailable(bool* available) {
110 return 0;
113 int32_t WebRtcAudioDeviceNotImpl::SetSpeakerVolume(uint32_t volume) {
114 return 0;
117 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolume(uint32_t* volume) const {
118 return 0;
121 int32_t WebRtcAudioDeviceNotImpl::MaxSpeakerVolume(uint32_t* max_volume) const {
122 return 0;
125 int32_t WebRtcAudioDeviceNotImpl::MinSpeakerVolume(uint32_t* min_volume) const {
126 return 0;
129 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolumeStepSize(
130 uint16_t* step_size) const {
131 return 0;
134 int32_t WebRtcAudioDeviceNotImpl::MicrophoneVolumeIsAvailable(bool* available) {
135 return 0;
138 int32_t WebRtcAudioDeviceNotImpl::MicrophoneVolumeStepSize(
139 uint16_t* step_size) const {
140 return 0;
143 int32_t WebRtcAudioDeviceNotImpl::SpeakerMuteIsAvailable(bool* available) {
144 return 0;
147 int32_t WebRtcAudioDeviceNotImpl::SetSpeakerMute(bool enable) {
148 return 0;
151 int32_t WebRtcAudioDeviceNotImpl::SpeakerMute(bool* enabled) const {
152 return 0;
155 int32_t WebRtcAudioDeviceNotImpl::MicrophoneMuteIsAvailable(bool* available) {
156 return 0;
159 int32_t WebRtcAudioDeviceNotImpl::SetMicrophoneMute(bool enable) {
160 return 0;
163 int32_t WebRtcAudioDeviceNotImpl::MicrophoneMute(bool* enabled) const {
164 return 0;
167 int32_t WebRtcAudioDeviceNotImpl::MicrophoneBoostIsAvailable(bool* available) {
168 return 0;
171 int32_t WebRtcAudioDeviceNotImpl::SetMicrophoneBoost(bool enable) {
172 return 0;
175 int32_t WebRtcAudioDeviceNotImpl::MicrophoneBoost(bool* enabled) const {
176 return 0;
179 int32_t WebRtcAudioDeviceNotImpl::SetStereoPlayout(bool enable) {
180 return 0;
183 int32_t WebRtcAudioDeviceNotImpl::StereoPlayout(bool* enabled) const {
184 return 0;
187 int32_t WebRtcAudioDeviceNotImpl::SetStereoRecording(bool enable) {
188 return 0;
191 int32_t WebRtcAudioDeviceNotImpl::StereoRecording(bool* enabled) const {
192 return 0;
195 int32_t WebRtcAudioDeviceNotImpl::SetRecordingChannel(
196 const ChannelType channel) {
197 return 0;
200 int32_t WebRtcAudioDeviceNotImpl::RecordingChannel(ChannelType* channel) const {
201 return 0;
204 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutBuffer(const BufferType type,
205 uint16_t size_ms) {
206 return 0;
209 int32_t WebRtcAudioDeviceNotImpl::PlayoutBuffer(BufferType* type,
210 uint16_t* size_ms) const {
211 return 0;
214 int32_t WebRtcAudioDeviceNotImpl::CPULoad(uint16_t* load) const {
215 return 0;
218 int32_t WebRtcAudioDeviceNotImpl::StartRawOutputFileRecording(
219 const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) {
220 return 0;
223 int32_t WebRtcAudioDeviceNotImpl::StopRawOutputFileRecording() {
224 return 0;
227 int32_t WebRtcAudioDeviceNotImpl::StartRawInputFileRecording(
228 const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) {
229 return 0;
232 int32_t WebRtcAudioDeviceNotImpl::StopRawInputFileRecording() {
233 return 0;
236 int32_t WebRtcAudioDeviceNotImpl::SetRecordingSampleRate(
237 const uint32_t samples_per_sec) {
238 return 0;
241 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutSampleRate(
242 const uint32_t samples_per_sec) {
243 return 0;
246 int32_t WebRtcAudioDeviceNotImpl::ResetAudioDevice() {
247 return 0;
250 int32_t WebRtcAudioDeviceNotImpl::SetLoudspeakerStatus(bool enable) {
251 return 0;
254 int32_t WebRtcAudioDeviceNotImpl::GetLoudspeakerStatus(bool* enabled) const {
255 return 0;
258 int32_t WebRtcAudioDeviceNotImpl::SetAGC(bool enable) {
259 return 0;
262 bool WebRtcAudioDeviceNotImpl::AGC() const {
263 return true;
266 bool WebRtcAudioDeviceNotImpl::BuiltInAECIsAvailable() const {
267 return false;
270 int32_t WebRtcAudioDeviceNotImpl::EnableBuiltInAEC(bool enable) {
271 return 0;
274 } // namespace content