Fix build break
[chromium-blink-merge.git] / content / renderer / media / webrtc_audio_device_not_impl.cc
blobfd21fcb2ea651999c6b2b211f92ca3c35a82321b
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 {
9 const int64 kMillisecondsBetweenProcessCalls = 5000;
11 } // namespace
13 namespace content {
15 WebRtcAudioDeviceNotImpl::WebRtcAudioDeviceNotImpl()
16 : last_process_time_(base::TimeTicks::Now()) {
19 int32_t WebRtcAudioDeviceNotImpl::ChangeUniqueId(const int32_t id) {
20 return 0;
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);
30 int32_t WebRtcAudioDeviceNotImpl::Process() {
31 last_process_time_ = base::TimeTicks::Now();
32 return 0;
35 int32_t WebRtcAudioDeviceNotImpl::RegisterEventObserver(
36 webrtc::AudioDeviceObserver* event_callback) {
37 return 0;
40 int32_t WebRtcAudioDeviceNotImpl::ActiveAudioLayer(
41 AudioLayer* audio_layer) const {
42 return 0;
45 webrtc::AudioDeviceModule::ErrorCode
46 WebRtcAudioDeviceNotImpl::LastError() const {
47 return AudioDeviceModule::kAdmErrNone;
50 int16_t WebRtcAudioDeviceNotImpl::PlayoutDevices() {
51 return 0;
54 int16_t WebRtcAudioDeviceNotImpl::RecordingDevices() {
55 return 0;
58 int32_t WebRtcAudioDeviceNotImpl::PlayoutDeviceName(
59 uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize],
60 char guid[webrtc::kAdmMaxGuidSize]) {
61 return 0;
64 int32_t WebRtcAudioDeviceNotImpl::RecordingDeviceName(
65 uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize],
66 char guid[webrtc::kAdmMaxGuidSize]) {
67 return 0;
70 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutDevice(uint16_t index) {
71 return 0;
74 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutDevice(WindowsDeviceType device) {
75 return 0;
78 int32_t WebRtcAudioDeviceNotImpl::SetRecordingDevice(uint16_t index) {
79 return 0;
82 int32_t WebRtcAudioDeviceNotImpl::SetRecordingDevice(WindowsDeviceType device) {
83 return 0;
86 int32_t WebRtcAudioDeviceNotImpl::InitPlayout() {
87 return 0;
90 int32_t WebRtcAudioDeviceNotImpl::InitRecording() {
91 return 0;
94 int32_t WebRtcAudioDeviceNotImpl::SetWaveOutVolume(uint16_t volume_left,
95 uint16_t volume_right) {
96 return 0;
99 int32_t WebRtcAudioDeviceNotImpl::WaveOutVolume(
100 uint16_t* volume_left, uint16_t* volume_right) const {
101 return 0;
104 int32_t WebRtcAudioDeviceNotImpl::SpeakerIsAvailable(bool* available) {
105 return 0;
108 int32_t WebRtcAudioDeviceNotImpl::InitSpeaker() {
109 return 0;
112 bool WebRtcAudioDeviceNotImpl::SpeakerIsInitialized() const {
113 return 0;
116 int32_t WebRtcAudioDeviceNotImpl::MicrophoneIsAvailable(bool* available) {
117 return 0;
120 int32_t WebRtcAudioDeviceNotImpl::InitMicrophone() {
121 return 0;
124 bool WebRtcAudioDeviceNotImpl::MicrophoneIsInitialized() const {
125 return 0;
128 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolumeIsAvailable(bool* available) {
129 return 0;
132 int32_t WebRtcAudioDeviceNotImpl::SetSpeakerVolume(uint32_t volume) {
133 return 0;
136 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolume(uint32_t* volume) const {
137 return 0;
140 int32_t WebRtcAudioDeviceNotImpl::MaxSpeakerVolume(uint32_t* max_volume) const {
141 return 0;
144 int32_t WebRtcAudioDeviceNotImpl::MinSpeakerVolume(uint32_t* min_volume) const {
145 return 0;
148 int32_t WebRtcAudioDeviceNotImpl::SpeakerVolumeStepSize(
149 uint16_t* step_size) const {
150 return 0;
153 int32_t WebRtcAudioDeviceNotImpl::MicrophoneVolumeIsAvailable(bool* available) {
154 return 0;
157 int32_t WebRtcAudioDeviceNotImpl::MicrophoneVolumeStepSize(
158 uint16_t* step_size) const {
159 return 0;
162 int32_t WebRtcAudioDeviceNotImpl::SpeakerMuteIsAvailable(bool* available) {
163 return 0;
166 int32_t WebRtcAudioDeviceNotImpl::SetSpeakerMute(bool enable) {
167 return 0;
170 int32_t WebRtcAudioDeviceNotImpl::SpeakerMute(bool* enabled) const {
171 return 0;
174 int32_t WebRtcAudioDeviceNotImpl::MicrophoneMuteIsAvailable(bool* available) {
175 return 0;
178 int32_t WebRtcAudioDeviceNotImpl::SetMicrophoneMute(bool enable) {
179 return 0;
182 int32_t WebRtcAudioDeviceNotImpl::MicrophoneMute(bool* enabled) const {
183 return 0;
186 int32_t WebRtcAudioDeviceNotImpl::MicrophoneBoostIsAvailable(bool* available) {
187 return 0;
190 int32_t WebRtcAudioDeviceNotImpl::SetMicrophoneBoost(bool enable) {
191 return 0;
194 int32_t WebRtcAudioDeviceNotImpl::MicrophoneBoost(bool* enabled) const {
195 return 0;
198 int32_t WebRtcAudioDeviceNotImpl::SetStereoPlayout(bool enable) {
199 return 0;
202 int32_t WebRtcAudioDeviceNotImpl::StereoPlayout(bool* enabled) const {
203 return 0;
206 int32_t WebRtcAudioDeviceNotImpl::SetStereoRecording(bool enable) {
207 return 0;
210 int32_t WebRtcAudioDeviceNotImpl::StereoRecording(bool* enabled) const {
211 return 0;
214 int32_t WebRtcAudioDeviceNotImpl::SetRecordingChannel(
215 const ChannelType channel) {
216 return 0;
219 int32_t WebRtcAudioDeviceNotImpl::RecordingChannel(ChannelType* channel) const {
220 return 0;
223 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutBuffer(const BufferType type,
224 uint16_t size_ms) {
225 return 0;
228 int32_t WebRtcAudioDeviceNotImpl::PlayoutBuffer(BufferType* type,
229 uint16_t* size_ms) const {
230 return 0;
233 int32_t WebRtcAudioDeviceNotImpl::CPULoad(uint16_t* load) const {
234 return 0;
237 int32_t WebRtcAudioDeviceNotImpl::StartRawOutputFileRecording(
238 const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) {
239 return 0;
242 int32_t WebRtcAudioDeviceNotImpl::StopRawOutputFileRecording() {
243 return 0;
246 int32_t WebRtcAudioDeviceNotImpl::StartRawInputFileRecording(
247 const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) {
248 return 0;
251 int32_t WebRtcAudioDeviceNotImpl::StopRawInputFileRecording() {
252 return 0;
255 int32_t WebRtcAudioDeviceNotImpl::SetRecordingSampleRate(
256 const uint32_t samples_per_sec) {
257 return 0;
260 int32_t WebRtcAudioDeviceNotImpl::SetPlayoutSampleRate(
261 const uint32_t samples_per_sec) {
262 return 0;
265 int32_t WebRtcAudioDeviceNotImpl::ResetAudioDevice() {
266 return 0;
269 int32_t WebRtcAudioDeviceNotImpl::SetLoudspeakerStatus(bool enable) {
270 return 0;
273 int32_t WebRtcAudioDeviceNotImpl::GetLoudspeakerStatus(bool* enabled) const {
274 return 0;
277 } // namespace content