blob: f865d037e7183c8842e21def399fc3a16b4cba10 [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"
Edward Lemurc20978e2017-07-06 19:44:34 +020012#include "webrtc/rtc_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
henrika@webrtc.orga954c072014-12-09 16:22:09 +000037bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
henrikaba35d052015-07-14 17:04:08 +020038 LOG_F(LS_ERROR) << "Not supported on this platform";
henrika@webrtc.orga954c072014-12-09 16:22:09 +000039 return false;
40}
41
henrikaba35d052015-07-14 17:04:08 +020042int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
43 LOG_F(LS_ERROR) << "Not supported on this platform";
44 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000045}
46
henrikac14f5ff2015-09-23 14:08:33 +020047bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
48 LOG_F(LS_ERROR) << "Not supported on this platform";
49 return false;
50}
51
52int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
53 LOG_F(LS_ERROR) << "Not supported on this platform";
54 return -1;
55}
56
57bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
58 LOG_F(LS_ERROR) << "Not supported on this platform";
59 return false;
60}
61
62int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
63 LOG_F(LS_ERROR) << "Not supported on this platform";
64 return -1;
65}
66
maxmorin88e31a32016-08-16 00:56:09 -070067#if defined(WEBRTC_IOS)
henrikaba35d052015-07-14 17:04:08 +020068int AudioDeviceGeneric::GetPlayoutAudioParameters(
69 AudioParameters* params) const {
70 LOG_F(LS_ERROR) << "Not supported on this platform";
71 return -1;
72}
maxmorin88e31a32016-08-16 00:56:09 -070073
henrikaba35d052015-07-14 17:04:08 +020074int AudioDeviceGeneric::GetRecordAudioParameters(
75 AudioParameters* params) const {
76 LOG_F(LS_ERROR) << "Not supported on this platform";
77 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000078}
maxmorin88e31a32016-08-16 00:56:09 -070079#endif // WEBRTC_IOS
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000080
niklase@google.com470e71d2011-07-07 08:21:25 +000081} // namespace webrtc