blob: 4576f0e6ec0e916b86ef077088246d0624b430c8 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
pbos@webrtc.org811269d2013-07-11 13:24:38 +000011#include "webrtc/modules/audio_device/audio_device_generic.h"
henrikaba35d052015-07-14 17:04:08 +020012#include "webrtc/base/logging.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000013
14namespace webrtc {
15
pbos@webrtc.org25509882013-04-09 10:30:35 +000016int32_t AudioDeviceGeneric::SetRecordingSampleRate(
henrikaba35d052015-07-14 17:04:08 +020017 const uint32_t samplesPerSec) {
18 LOG_F(LS_ERROR) << "Not supported on this platform";
19 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000020}
21
henrikaba35d052015-07-14 17:04:08 +020022int32_t AudioDeviceGeneric::SetPlayoutSampleRate(const uint32_t samplesPerSec) {
23 LOG_F(LS_ERROR) << "Not supported on this platform";
24 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000025}
pbos@webrtc.org25509882013-04-09 10:30:35 +000026
henrikaba35d052015-07-14 17:04:08 +020027int32_t AudioDeviceGeneric::SetLoudspeakerStatus(bool enable) {
28 LOG_F(LS_ERROR) << "Not supported on this platform";
29 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000030}
31
henrikaba35d052015-07-14 17:04:08 +020032int32_t AudioDeviceGeneric::GetLoudspeakerStatus(bool& enable) const {
33 LOG_F(LS_ERROR) << "Not supported on this platform";
34 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000035}
36
henrikaba35d052015-07-14 17:04:08 +020037int32_t AudioDeviceGeneric::ResetAudioDevice() {
38 LOG_F(LS_ERROR) << "Not supported on this platform";
39 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000040}
41
pbos@webrtc.org25509882013-04-09 10:30:35 +000042int32_t AudioDeviceGeneric::SoundDeviceControl(unsigned int par1,
henrikaba35d052015-07-14 17:04:08 +020043 unsigned int par2,
44 unsigned int par3,
45 unsigned int par4) {
46 LOG_F(LS_ERROR) << "Not supported on this platform";
47 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000048}
49
henrika@webrtc.orga954c072014-12-09 16:22:09 +000050bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
henrikaba35d052015-07-14 17:04:08 +020051 LOG_F(LS_ERROR) << "Not supported on this platform";
henrika@webrtc.orga954c072014-12-09 16:22:09 +000052 return false;
53}
54
henrikaba35d052015-07-14 17:04:08 +020055int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
56 LOG_F(LS_ERROR) << "Not supported on this platform";
57 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000058}
59
henrikaba35d052015-07-14 17:04:08 +020060bool AudioDeviceGeneric::BuiltInAECIsEnabled() const {
61 LOG_F(LS_ERROR) << "Not supported on this platform";
62 return false;
63}
64
65int AudioDeviceGeneric::GetPlayoutAudioParameters(
66 AudioParameters* params) const {
67 LOG_F(LS_ERROR) << "Not supported on this platform";
68 return -1;
69}
70int AudioDeviceGeneric::GetRecordAudioParameters(
71 AudioParameters* params) const {
72 LOG_F(LS_ERROR) << "Not supported on this platform";
73 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000074}
75
niklase@google.com470e71d2011-07-07 08:21:25 +000076} // namespace webrtc