1/*
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
11#include "webrtc/modules/audio_device/audio_device_generic.h"
12#include "webrtc/base/logging.h"
13
14namespace webrtc {
15
16int32_t AudioDeviceGeneric::SetRecordingSampleRate(
17    const uint32_t samplesPerSec) {
18  LOG_F(LS_ERROR) << "Not supported on this platform";
19  return -1;
20}
21
22int32_t AudioDeviceGeneric::SetPlayoutSampleRate(const uint32_t samplesPerSec) {
23  LOG_F(LS_ERROR) << "Not supported on this platform";
24  return -1;
25}
26
27int32_t AudioDeviceGeneric::SetLoudspeakerStatus(bool enable) {
28  LOG_F(LS_ERROR) << "Not supported on this platform";
29  return -1;
30}
31
32int32_t AudioDeviceGeneric::GetLoudspeakerStatus(bool& enable) const {
33  LOG_F(LS_ERROR) << "Not supported on this platform";
34  return -1;
35}
36
37int32_t AudioDeviceGeneric::ResetAudioDevice() {
38  LOG_F(LS_ERROR) << "Not supported on this platform";
39  return -1;
40}
41
42int32_t AudioDeviceGeneric::SoundDeviceControl(unsigned int par1,
43                                               unsigned int par2,
44                                               unsigned int par3,
45                                               unsigned int par4) {
46  LOG_F(LS_ERROR) << "Not supported on this platform";
47  return -1;
48}
49
50bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
51  LOG_F(LS_ERROR) << "Not supported on this platform";
52  return false;
53}
54
55int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
56  LOG_F(LS_ERROR) << "Not supported on this platform";
57  return -1;
58}
59
60bool AudioDeviceGeneric::BuiltInAECIsEnabled() const {
61  LOG_F(LS_ERROR) << "Not supported on this platform";
62  return false;
63}
64
65bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
66  LOG_F(LS_ERROR) << "Not supported on this platform";
67  return false;
68}
69
70int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
71  LOG_F(LS_ERROR) << "Not supported on this platform";
72  return -1;
73}
74
75bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
76  LOG_F(LS_ERROR) << "Not supported on this platform";
77  return false;
78}
79
80int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
81  LOG_F(LS_ERROR) << "Not supported on this platform";
82  return -1;
83}
84
85int AudioDeviceGeneric::GetPlayoutAudioParameters(
86    AudioParameters* params) const {
87  LOG_F(LS_ERROR) << "Not supported on this platform";
88  return -1;
89}
90int AudioDeviceGeneric::GetRecordAudioParameters(
91    AudioParameters* params) const {
92  LOG_F(LS_ERROR) << "Not supported on this platform";
93  return -1;
94}
95
96}  // namespace webrtc
97